mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
identify which parts are causing issues and comment them out, obviously this needs fixing
This commit is contained in:
parent
2c801cc558
commit
1e53c4f5f0
2 changed files with 11 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue