Socket ip
This commit is contained in:
parent
96c2d2b20a
commit
af008e53e4
|
@ -44,7 +44,7 @@ Log.socket = {};
|
|||
Log.socket.connection = function(socket) {
|
||||
log(
|
||||
'[SOK] ' + new Date() + ' ' +
|
||||
socket.handshake.address + ' connection',
|
||||
socket.request.connection._peername.address + ' connection',
|
||||
Colors.MAGENTA
|
||||
);
|
||||
};
|
||||
|
@ -52,7 +52,7 @@ Log.socket.connection = function(socket) {
|
|||
Log.socket.disconnect = function(socket) {
|
||||
log(
|
||||
'[SOK] ' + new Date() + ' ' +
|
||||
socket.handshake.address + ' disconnect',
|
||||
socket.request.connection._peername.address + ' disconnect',
|
||||
Colors.MAGENTA
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue