Prevent multiple DNS lookups

main
Elbert Alias 4 years ago
parent a797e4e0f1
commit 1d2324e760

@ -639,7 +639,7 @@ class Site {
} }
// DNS // DNS
if (!this.dns.length) { if (!Object.keys(this.dns).length) {
const records = {} const records = {}
const resolve = (func, hostname) => { const resolve = (func, hostname) => {
return this.promiseTimeout( return this.promiseTimeout(
@ -722,9 +722,8 @@ class Site {
) && ) &&
link.protocol && link.protocol &&
link.protocol.match(/https?:/) && link.protocol.match(/https?:/) &&
link.rel !== 'nofollow' &&
link.hostname === url.hostname && link.hostname === url.hostname &&
extensions.test(link.pathname) extensions.test(link.pathname.slice(-5))
) { ) {
results.push(new URL(link.href.split('#')[0])) results.push(new URL(link.href.split('#')[0]))
} }

@ -79,10 +79,10 @@ const Driver = {
'https://www.wappalyzer.com/installed/?utm_source=installed&utm_medium=extension&utm_campaign=wappalyzer' 'https://www.wappalyzer.com/installed/?utm_source=installed&utm_medium=extension&utm_campaign=wappalyzer'
) )
} else if (version !== previous && upgradeMessage) { } else if (version !== previous && upgradeMessage) {
// open( open(
// `https://www.wappalyzer.com/upgraded/?utm_source=upgraded&utm_medium=extension&utm_campaign=wappalyzer`, `https://www.wappalyzer.com/upgraded/?utm_source=upgraded&utm_medium=extension&utm_campaign=wappalyzer`,
// false false
// ) )
} }
await setOption('version', version) await setOption('version', version)

Loading…
Cancel
Save