Change the /lookup IP
All checks were successful
Build and Publish ipserv / build_and_publish (push) Successful in 1m12s

This commit is contained in:
Nexus 2024-04-22 23:30:36 +01:00
parent f6dc105976
commit 10df69722d

View file

@ -148,9 +148,9 @@ async function main(e) {
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)
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 += "Checking /imfeelinglucky (this may take a while) ";