mirror of
https://github.com/younesaassila/ttv-lol-pro.git
synced 2025-05-01 15:04:26 +02:00
Fix DNS TTL
This commit is contained in:
parent
80625abfd9
commit
aaee925d20
@ -55,9 +55,11 @@ export default async function updateDnsResponses() {
|
|||||||
console.error("Answer is not an array:", Answer);
|
console.error("Answer is not an array:", Answer);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const ips = Answer.map((answer: any) => answer.data);
|
const ips = Answer.map((answer: any) => answer.data as string);
|
||||||
const ttl =
|
const ttl = Math.max(
|
||||||
Number(response.headers.get("Cache-Control")?.split("=")[1]) || 0;
|
Math.max(...Answer.map((answer: any) => answer.TTL as number)),
|
||||||
|
300
|
||||||
|
);
|
||||||
if (dnsResponseIndex !== -1) {
|
if (dnsResponseIndex !== -1) {
|
||||||
store.state.dnsResponses.splice(dnsResponseIndex, 1);
|
store.state.dnsResponses.splice(dnsResponseIndex, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user