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:
Pierre Ossman 2018-10-16 16:10:37 +02:00
parent 7abd7ac4a9
commit 6a9e446f8e
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ new_client = function(client, req) {
log('Version ' + client.protocolVersion + ', subprotocol: ' + client.protocol);
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');
} else {
var rs = null;