From f2f6f05923a8acd89f91469422f92779d25ec9ee Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 9 Sep 2022 06:24:59 -0400 Subject: [PATCH] *Pass domain to dnsProvider --- src/dns.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dns.ts b/src/dns.ts index 352b824..f3f9143 100644 --- a/src/dns.ts +++ b/src/dns.ts @@ -27,11 +27,13 @@ async function ipUpdate() { return; } - await dnsProvider(currentIp); + const domain = config.str("domain"); + + await dnsProvider(currentIp, domain); activeIp = currentIp; - log.info(`Updated DynDNS hostname ${config.str("domain")} to ${activeIp}`); + log.info(`Updated DynDNS hostname ${domain} to ${activeIp}`); } export async function start() {