diff --git a/other/js/websockify.js b/other/js/websockify.js index 7fc69f5..342bbc2 100755 --- a/other/js/websockify.js +++ b/other/js/websockify.js @@ -30,7 +30,7 @@ new_client = function(client, req) { var clientAddr = client._socket.remoteAddress, log; var start_time = new Date().getTime(); - console.log(client.upgradeReq.url); + console.log(req ? req.url : client.upgradeReq.url); log = function (msg) { console.log(' ' + clientAddr + ': '+ msg); };