*Pass domain to dnsProvider
This commit is contained in:
parent
a12f6c0c89
commit
f2f6f05923
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue