diff --git a/other/js/websockify.js b/other/js/websockify.js index 8beda2a..405b4e4 100755 --- a/other/js/websockify.js +++ b/other/js/websockify.js @@ -29,9 +29,9 @@ var argv = require('optimist').argv, // Handle new WebSocket client -new_client = function(client, upgradeReq) { +new_client = function(client, req) { var clientAddr = client._socket.remoteAddress, log; - console.log(upgradeReq ? upgradeReq.url : client.upgradeReq.url); + console.log(req ? req.url : client.req.url); log = function (msg) { console.log(' ' + clientAddr + ': '+ msg); };