|
|
|
@ -51,11 +51,10 @@ async function doCheck(domainKey, hkey, record) { |
|
|
|
|
const signal = controller.signal; |
|
|
|
|
setTimeout(() => { |
|
|
|
|
controller.abort(); |
|
|
|
|
}, 5000); |
|
|
|
|
}, 7000); |
|
|
|
|
const host = isIPv4(record.ip) ? record.ip : `[${record.ip}]`; |
|
|
|
|
const hostHeader = domainKey.substring(4, domainKey.length-1); |
|
|
|
|
//await fetch(`https://${host}/.basedflare/cgi/trace`, {
|
|
|
|
|
await fetch(`https://${host}/.basedflare/cgi/ping`, { |
|
|
|
|
await fetch(`https://${host}/.basedflare/cgi/trace`, { |
|
|
|
|
method: 'HEAD', |
|
|
|
|
redirect: 'manual', |
|
|
|
|
headers: { 'Host': hostHeader }, |
|
|
|
|