Socket ip

This commit is contained in:
Thomas FORGIONE 2015-07-07 16:16:58 +02:00
parent 96c2d2b20a
commit af008e53e4
1 changed files with 2 additions and 2 deletions

View File

@ -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
);
};