Handle hyphenatedSubdomains in the backend verifyDnsConfig()

This commit is contained in:
Johannes Zellner
2018-08-22 12:16:19 +02:00
parent 59700e455e
commit b35c81e546
10 changed files with 23 additions and 18 deletions
+2 -1
View File
@@ -203,7 +203,8 @@ function verifyDnsConfig(dnsConfig, fqdn, zoneName, ip, callback) {
if (!dnsConfig.token || typeof dnsConfig.token !== 'string') return callback(new DomainsError(DomainsError.BAD_FIELD, 'token must be a non-empty string'));
var credentials = {
token: dnsConfig.token
token: dnsConfig.token,
hyphenatedSubdomains: !!dnsConfig.hyphenatedSubdomains
};
if (process.env.BOX_ENV === 'test') return callback(null, credentials); // this shouldn't be here