ovh: accomodate anycast.me servers

This commit is contained in:
Girish Ramakrishnan
2023-12-05 14:03:59 +01:00
parent 45fd046b9b
commit be35926fd1
+2 -1
View File
@@ -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');
}