mirror of
https://github.com/tale/headplane.git
synced 2026-08-13 07:06:51 +00:00
fix: auto read dns.extra_records_path instead of making it required
Closes HP-538
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user