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
+1 -9
View File
@@ -101,15 +101,7 @@ function verifyDnsConfig(config, domain, zoneName, provider, ip, callback) {
var backend = api(provider);
if (!backend) return callback(new DomainsError(DomainsError.INVALID_PROVIDER));
api(provider).verifyDnsConfig(config, domain, zoneName, ip, function (error, result) {
if (error) return callback(error);
// set potential hyphenatedSubdomains property if true, otherwise unset
// TODO this should possibly be verified against in the backend and passed normally through the result
if ('hyphenatedSubdomains' in config && !!config.hyphenatedSubdomains) result.hyphenatedSubdomains = !!config.hyphenatedSubdomains;
callback(null, result);
});
api(provider).verifyDnsConfig(config, domain, zoneName, ip, callback);
}
function add(domain, zoneName, provider, config, fallbackCertificate, tlsConfig, callback) {