Updates to drawing, additional props, friendly IP addrs, etc.
This commit is contained in:
@@ -577,7 +577,9 @@ Client.prototype.isLocal = function() {
|
||||
|
||||
Client.prototype.friendlyRemoteAddress = function() {
|
||||
// convert any :ffff: IPv4's to 32bit version
|
||||
return this.remoteAddress.replace(/^::ffff:/, '')
|
||||
return this.remoteAddress
|
||||
.replace(/^::ffff:/, '')
|
||||
.replace(/^::1$/, 'localhost');
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user