Adjust lic headers

This commit is contained in:
Owen
2026-09-09 11:17:53 -04:00
parent 2c5b1e5f0f
commit 073bfb32e9
5 changed files with 39 additions and 29 deletions
+7 -4
View File
@@ -17,6 +17,12 @@ 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) {
return;
@@ -29,10 +35,7 @@ export async function startDnsServer() {
};
// Create DNS server
dnsServer = new AuthoritativeDNSServer(
dnsConfig.listen_port,
cacheOptions
);
dnsServer = new AuthoritativeDNSServer(dnsConfig.listen_port, cacheOptions);
await dnsServer.start();
}