Add cert_mode to know when to gen or pull certs

This commit is contained in:
Owen
2026-09-09 11:48:17 -04:00
parent 073bfb32e9
commit 3421441635
6 changed files with 43 additions and 23 deletions
+1 -7
View File
@@ -17,14 +17,8 @@ import { privateConfig } from "#private/lib/config";
let dnsServer: AuthoritativeDNSServer | undefined;
export async function startDnsServer() {
const use_pangolin_dns =
privateConfig.getRawPrivateConfig().flags.use_pangolin_dns;
if (!use_pangolin_dns) {
return;
}
const dnsConfig = privateConfig.getRawPrivateConfig().dns;
if (!dnsConfig) {
if (!dnsConfig || !dnsConfig.enabled) {
return;
}