Change the /lookup IP
All checks were successful
Build and Publish ipserv / build_and_publish (push) Successful in 1m12s
All checks were successful
Build and Publish ipserv / build_and_publish (push) Successful in 1m12s
This commit is contained in:
parent
f6dc105976
commit
10df69722d
1 changed files with 2 additions and 2 deletions
|
@ -148,9 +148,9 @@ async function main(e) {
|
||||||
|
|
||||||
|
|
||||||
log.textContent += "Checking /lookup... ";
|
log.textContent += "Checking /lookup... ";
|
||||||
const lookup = await checkLookup(base_url + "/lookup?ip=" + realIP);
|
const lookup = await checkLookup(base_url + "/lookup?ip=8.8.8.8");
|
||||||
const lookupFeatures = checkReturnedJSON(lookup)
|
const lookupFeatures = checkReturnedJSON(lookup)
|
||||||
let lookupOK = lookupFeatures >= 1 && lookup.ip === realIP;
|
let lookupOK = lookupFeatures >= 1 && lookup.ip != realIP;
|
||||||
log.textContent += lookupOK ? `OK (${rootFeatures}/${Object.keys(VALID_KEYS).length} features)\n` : "FAILED\n";
|
log.textContent += lookupOK ? `OK (${rootFeatures}/${Object.keys(VALID_KEYS).length} features)\n` : "FAILED\n";
|
||||||
|
|
||||||
log.textContent += "Checking /imfeelinglucky (this may take a while) ";
|
log.textContent += "Checking /imfeelinglucky (this may take a while) ";
|
||||||
|
|
Reference in a new issue