identify which parts are causing issues and comment them out, obviously this needs fixing

This commit is contained in:
John McLear 2014-11-04 17:57:18 +00:00
parent 2c801cc558
commit 1e53c4f5f0
2 changed files with 11 additions and 3 deletions

View file

@ -56,11 +56,13 @@ exports.setSocketIO = function(_socket) {
socket.sockets.on('connection', function(client)
{
// Broken: See http://stackoverflow.com/questions/4647348/send-message-to-specific-client-with-socket-io-and-node-js
if(settings.trustProxy && client.handshake.headers['x-forwarded-for'] !== undefined){
client.set('remoteAddress', client.handshake.headers['x-forwarded-for']);
// client.set('remoteAddress', client.handshake.headers['x-forwarded-for']);
}
else{
client.set('remoteAddress', client.handshake.address.address);
// client.set('remoteAddress', client.handshake.address);
}
var clientAuthorized = false;