Implement isLocal() for 'LC' ACS
This commit is contained in:
parent
17cebdebce
commit
281bfbc2aa
|
@ -475,8 +475,8 @@ Client.prototype.waitForKeyPress = function(cb) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Client.prototype.isLocal = function() {
|
Client.prototype.isLocal = function() {
|
||||||
// :TODO: return rather client is a local connection or not
|
// :TODO: Handle ipv6 better
|
||||||
return false;
|
return [ '127.0.0.1', '::ffff:127.0.0.1' ].includes(this.remoteAddress);
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue