waitForDnsRecord: use subdomain as argument

this allows to hyphenate the subdomain correctly in all places

the original issue was that altDomain in caas was not working
because waitForDnsRecord was not hyphenating.
This commit is contained in:
Girish Ramakrishnan
2018-09-22 11:25:58 -07:00
parent c8216d84ac
commit e69004548b
4 changed files with 11 additions and 10 deletions

View File

@@ -144,7 +144,7 @@ function configureWebadmin(callback) {
debug('addWebadminDnsRecord: updated records with error:', error);
if (error) return configureReverseProxy(error);
domains.waitForDnsRecord(config.adminFqdn(), config.adminDomain(), 'A', ip, { interval: 30000, times: 50000 }, function (error) {
domains.waitForDnsRecord(config.adminLocation(), config.adminDomain(), 'A', ip, { interval: 30000, times: 50000 }, function (error) {
if (error) return configureReverseProxy(error);
gWebadminStatus.dns = true;