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