Avoid : in recording file names
That character is not legal in Windows file names, so make sure we avoid it when creating recording files.
This commit is contained in:
parent
7abd7ac4a9
commit
6a9e446f8e
|
@ -39,7 +39,7 @@ new_client = function(client, req) {
|
||||||
log('Version ' + client.protocolVersion + ', subprotocol: ' + client.protocol);
|
log('Version ' + client.protocolVersion + ', subprotocol: ' + client.protocol);
|
||||||
|
|
||||||
if (argv.record) {
|
if (argv.record) {
|
||||||
var rs = fs.createWriteStream(argv.record + '/' + new Date().toISOString());
|
var rs = fs.createWriteStream(argv.record + '/' + new Date().toISOString().replace(/:/g, "_"));
|
||||||
rs.write('var VNC_frame_data = [\n');
|
rs.write('var VNC_frame_data = [\n');
|
||||||
} else {
|
} else {
|
||||||
var rs = null;
|
var rs = null;
|
||||||
|
|
Loading…
Reference in New Issue