ovh: accomodate anycast.me servers
This commit is contained in:
+2
-1
@@ -216,7 +216,8 @@ async function verifyDomainConfig(domainObject) {
|
||||
if (error && error.code === 'ENOTFOUND') throw new BoxError(BoxError.BAD_FIELD, 'Unable to resolve nameservers for this domain');
|
||||
if (error || !nameservers) throw new BoxError(BoxError.BAD_FIELD, error ? error.message : 'Unable to get nameservers');
|
||||
|
||||
if (!nameservers.every(function (n) { return n.toLowerCase().search(/ovh|kimsufi/) !== -1; })) { // SoYouStart and Kimsufi can also be accomdated
|
||||
// ovh.net, ovh.ca or anycast.me
|
||||
if (!nameservers.every(function (n) { return n.toLowerCase().search(/ovh|kimsufi|anycast/) !== -1; })) {
|
||||
debug('verifyDomainConfig: %j does not contain OVH NS', nameservers);
|
||||
throw new BoxError(BoxError.BAD_FIELD, 'Domain nameservers are not set to OVH');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user