Updates to drawing, additional props, friendly IP addrs, etc.

This commit is contained in:
Bryan Ashby
2022-06-10 16:08:22 -06:00
parent 1ba866f2ca
commit ba5775adc9
8 changed files with 59 additions and 9 deletions

View File

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