|
|
@ -637,17 +637,16 @@ class Site {
|
|
|
|
// DNS
|
|
|
|
// DNS
|
|
|
|
if (!this.dns.length) {
|
|
|
|
if (!this.dns.length) {
|
|
|
|
const records = {}
|
|
|
|
const records = {}
|
|
|
|
|
|
|
|
|
|
|
|
const resolve = async (func, hostname) => {
|
|
|
|
const resolve = async (func, hostname) => {
|
|
|
|
try {
|
|
|
|
return this.promiseTimeout(
|
|
|
|
return await this.promiseTimeout(func(hostname))
|
|
|
|
func(hostname).catch((error) => {
|
|
|
|
} catch (error) {
|
|
|
|
if (error.code !== 'ENODATA') {
|
|
|
|
if (error.code !== 'ENODATA') {
|
|
|
|
this.error(error)
|
|
|
|
this.error(error)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return []
|
|
|
|
return []
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const domain = url.hostname.replace(/^www\./, '')
|
|
|
|
const domain = url.hostname.replace(/^www\./, '')
|
|
|
|