Added ip to connection log
This commit is contained in:
parent
2bdeaa7960
commit
5bd8edc5b5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user