Correct typo

This commit is contained in:
Sam Frances 2017-11-03 15:21:33 +00:00
parent 41cd3f8adf
commit 94fba81827
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ var argv = require('optimist').argv,
// Handle new WebSocket client
new_client = function(client, req) {
var clientAddr = client._socket.remoteAddress, log;
console.log(req ? req.url : client.req.url);
console.log(req ? req.url : client.upgradeReq.url);
log = function (msg) {
console.log(' ' + clientAddr + ': '+ msg);
};