made loop better

This commit is contained in:
BPplays
2024-12-25 17:01:12 -08:00
parent 418a2564b2
commit 38b1c26396

View File

@@ -394,7 +394,9 @@ async function getHasIP() {
if (info.family === 'IPv4') { if (info.family === 'IPv4') {
hasIPv4 = true; hasIPv4 = true;
} }
if (hasIPv6 && hasIPv4) break;
} }
if (hasIPv6 && hasIPv4) break;
} }
return [hasIPv6, hasIPv4]; return [hasIPv6, hasIPv4];
} }