代码:
Handler.prototype.getClientIp = function(msg, session, next) {
var ip = session.__session__.__socket__.remoteAddress.ip
console.log(ip);
}
代码:
Handler.prototype.getClientIp = function(msg, session, next) {
var ip = session.__session__.__socket__.remoteAddress.ip
console.log(ip);
}