Fix lint
This commit is contained in:
parent
d97a12b718
commit
b3a5fd3cfb
1 changed files with 24 additions and 21 deletions
|
@ -25,12 +25,15 @@ const FALLBACK_DOMAINS = [
|
|||
async function main() {
|
||||
const config = await Promise.all(
|
||||
FALLBACK_DOMAINS.sort().map(async domain => {
|
||||
const ipv4endpoints = (await resolve4(domain)).map(a => ({
|
||||
family: 'ipv4',
|
||||
address: a,
|
||||
}));
|
||||
|
||||
const ipv4endpoints = (await resolve4(domain))
|
||||
.map(a => ({"family": "ipv4", "address": a}))
|
||||
|
||||
const ipv6endpoints = (await resolve6(domain))
|
||||
.map(a => ({"family": "ipv6", "address": a}))
|
||||
const ipv6endpoints = (await resolve6(domain)).map(a => ({
|
||||
family: 'ipv6',
|
||||
address: a,
|
||||
}));
|
||||
|
||||
const endpoints = [...ipv4endpoints, ...ipv6endpoints]
|
||||
.filter(isNotNil)
|
||||
|
@ -49,7 +52,7 @@ async function main() {
|
|||
return 1;
|
||||
}
|
||||
return 0;
|
||||
})
|
||||
});
|
||||
|
||||
return { domain, endpoints };
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue