mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 06:34:41 +02:00
Implement isLocal() for 'LC' ACS
This commit is contained in:
parent
17cebdebce
commit
281bfbc2aa
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue