Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dangond-ptc authored and hobinjk-ptc committed Jul 17, 2023
1 parent d6254bc commit f2b73c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ services.getIP = function () {

for (let key in interfaceNames) {
let tempIps = this.networkInterface.toIps(interfaceNames[key], {ipVersion: 4});
for (let key2 in tempIps) if (tempIps[key2] === '127.0.0.1' || tempIps[key2] === 'localhost') tempIps.splice(key2, 1);
tempIps = tempIps.filter(ip => !['127.0.0.1', 'localhost'].includes(ip));
this.ips.interfaces[interfaceNames[key]] = tempIps[0];
}

Expand Down

0 comments on commit f2b73c8

Please sign in to comment.