From 8c622695679ed427a2b18683ff3e24c57ce5e97d Mon Sep 17 00:00:00 2001 From: Olli Vanhoja Date: Sat, 29 Oct 2016 13:59:20 +0300 Subject: [PATCH] Fix DNS verification on 'now alias' (#106) --- lib/alias.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/alias.js b/lib/alias.js index 104de7f..fd3236f 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -366,7 +366,7 @@ export default class Alias extends Now { } for (const ip of ips) { - if (targets.indexOf(ip) !== -1) { + if (targets.indexOf(ip) === -1) { const err = new Error(`The domain ${domain} has an A record ${chalk.bold(ip)} that doesn't resolve to ${chalk.bold(chalk.underline('alias.zeit.co'))}.\n> ` + DOMAIN_VERIFICATION_ERROR) err.ip = ip err.userError = true