Update index.js
Browse files
index.js
CHANGED
@@ -34,6 +34,7 @@ const isipok = async (ip) => {
|
|
34 |
if (!rg) {
|
35 |
return { ip, status: false };
|
36 |
}
|
|
|
37 |
return { ip, status: true, region: rg };
|
38 |
}
|
39 |
|
@@ -65,7 +66,7 @@ const testAll = async (startIP, endIP) => {
|
|
65 |
try {
|
66 |
const result = await isipok(XForwardedForIP);
|
67 |
if (result.status) {
|
68 |
-
results.push(result);
|
69 |
}
|
70 |
} catch (error) {
|
71 |
console.error(error);
|
|
|
34 |
if (!rg) {
|
35 |
return { ip, status: false };
|
36 |
}
|
37 |
+
console.log(`[${ip}, ${rg}]`);
|
38 |
return { ip, status: true, region: rg };
|
39 |
}
|
40 |
|
|
|
66 |
try {
|
67 |
const result = await isipok(XForwardedForIP);
|
68 |
if (result.status) {
|
69 |
+
results.push([result.ip, result.region]);
|
70 |
}
|
71 |
} catch (error) {
|
72 |
console.error(error);
|