querysub 0.77.0 → 0.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -200,7 +200,12 @@ async function checkEdgeDomainsAlive() {
|
|
|
200
200
|
ips = ips.filter(ip => ip !== "127.0.0.1");
|
|
201
201
|
|
|
202
202
|
let results = await Promise.all(ips.map(async ip => {
|
|
203
|
-
|
|
203
|
+
// It must be not listening for 3 times in a row
|
|
204
|
+
for (let i = 0; i < 3; i++) {
|
|
205
|
+
let isListening = await testTCPIsListening(ip, publicPort);
|
|
206
|
+
if (isListening) return true;
|
|
207
|
+
}
|
|
208
|
+
return false;
|
|
204
209
|
}));
|
|
205
210
|
|
|
206
211
|
let deadIPs = ips.filter((ip, i) => !results[i]);
|