Added ip to connection log
This commit is contained in:
1 parent
2bdeaa7960
commit
5bd8edc5b5
1 file changed
+2
-1
@@ -131,7 +131,8 @@ function rejectPeerResponse(peerType, reason) {
|
||||
* Socket pipeline
|
||||
*/
|
||||
io.on('connection', function(socket) {
|
||||
console.log('Connection received with sessionId - ' + socket.id);
|
||||
let sHeaders = socket.handshake.headers;
|
||||
console.log('Connection received with sessionId - ' + socket.id + ' and ip - ' + sHeaders['x-forwarded-for']);
|
||||
|
||||
socket.on('error', function(error) {
|
||||
console.error('Connection ' + socket.id + ' error', error);
|
||||
|
||||
Reference in new issue
Block a user