Implement isLocal() for 'LC' ACS

This commit is contained in:
Bryan Ashby 2018-03-04 20:47:25 -07:00
parent 17cebdebce
commit 281bfbc2aa
1 changed files with 2 additions and 2 deletions

View File

@ -475,8 +475,8 @@ Client.prototype.waitForKeyPress = function(cb) {
};
Client.prototype.isLocal = function() {
// :TODO: return rather client is a local connection or not
return false;
// :TODO: Handle ipv6 better
return [ '127.0.0.1', '::ffff:127.0.0.1' ].includes(this.remoteAddress);
};
///////////////////////////////////////////////////////////////////////////////