fix: auto read dns.extra_records_path instead of making it required

Closes HP-538
This commit is contained in:
Aarnav Tale
2026-06-17 11:11:20 -04:00
parent e74e0d4542
commit 2f3a440de5
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ export async function loadHeadscaleConfig(path?: string, strict = true, dnsPath?
return new HeadscaleConfig("no");
}
const dns = await loadHeadscaleDNS(dnsPath);
const dns = await loadHeadscaleDNS(dnsPath ?? config.dns.extra_records_path);
if (dns && !config.dns.extra_records_path) {
log.error(
"config",