*Pass domain to dnsProvider

This commit is contained in:
Derrick Hammer 2022-09-09 06:24:59 -04:00
parent a12f6c0c89
commit f2f6f05923
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 2 deletions

View File

@ -27,11 +27,13 @@ async function ipUpdate() {
return; return;
} }
await dnsProvider(currentIp); const domain = config.str("domain");
await dnsProvider(currentIp, domain);
activeIp = currentIp; activeIp = currentIp;
log.info(`Updated DynDNS hostname ${config.str("domain")} to ${activeIp}`); log.info(`Updated DynDNS hostname ${domain} to ${activeIp}`);
} }
export async function start() { export async function start() {