Browse Source

Fix DNS verification on 'now alias' (#106)

master
Olli Vanhoja 8 years ago
committed by Guillermo Rauch
parent
commit
8c62269567
  1. 2
      lib/alias.js

2
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

Loading…
Cancel
Save