changed to check 127.0.0.1 because that's what it binds to

This commit is contained in:
BPplays
2024-12-28 17:27:49 -08:00
parent 0382afc488
commit dd6dcf1c5b

View File

@@ -396,14 +396,14 @@ async function getHasIP() {
for (const info of iface) { for (const info of iface) {
if (info.family === 'IPv6') { if (info.family === 'IPv6') {
hasIPv6 = true; hasIPv6 = true;
if (info.internal === true) { if (info.address === '::1') {
hasIPv6Local = true; hasIPv6Local = true;
} }
} }
if (info.family === 'IPv4') { if (info.family === 'IPv4') {
hasIPv4 = true; hasIPv4 = true;
if (info.internal === true) { if (info.address === '127.0.0.1') {
hasIPv4Local = true; hasIPv4Local = true;
} }
} }