dyndns: keep going if one or more domains fail to update
This commit is contained in:
+4
-4
@@ -60,8 +60,8 @@ async function sync(ipv4, ipv6, auditSource, progressCallback) {
|
||||
|
||||
let percent = 10;
|
||||
progressCallback({ percent, message: `Updating dashboard domain ${settings.dashboardFqdn()}`});
|
||||
if (ipv4) await dns.upsertDnsRecords(constants.DASHBOARD_SUBDOMAIN, settings.dashboardDomain(), 'A', [ ipv4 ]);
|
||||
if (ipv6) await dns.upsertDnsRecords(constants.DASHBOARD_SUBDOMAIN, settings.dashboardDomain(), 'AAAA', [ ipv6 ]);
|
||||
if (ipv4) await safe(dns.upsertDnsRecords(constants.DASHBOARD_SUBDOMAIN, settings.dashboardDomain(), 'A', [ ipv4 ]), { debug });
|
||||
if (ipv6) await safe(dns.upsertDnsRecords(constants.DASHBOARD_SUBDOMAIN, settings.dashboardDomain(), 'AAAA', [ ipv6 ]), { debug });
|
||||
|
||||
const result = await apps.list();
|
||||
for (const app of result) {
|
||||
@@ -74,8 +74,8 @@ async function sync(ipv4, ipv6, auditSource, progressCallback) {
|
||||
.concat(app.aliasDomains);
|
||||
|
||||
for (const location of locations) {
|
||||
if (ipv4) await dns.upsertDnsRecords(location.subdomain, location.domain, 'A', [ ipv4 ]);
|
||||
if (ipv6) await dns.upsertDnsRecords(location.subdomain, location.domain, 'AAAA', [ ipv6 ]);
|
||||
if (ipv4) await safe(dns.upsertDnsRecords(location.subdomain, location.domain, 'A', [ ipv4 ]), { debug });
|
||||
if (ipv6) await safe(dns.upsertDnsRecords(location.subdomain, location.domain, 'AAAA', [ ipv6 ], { debug }));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user