mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-15 23:30:17 +02:00
Add cert_mode to know when to gen or pull certs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user