mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-15 15:19:51 +02:00
Adjust lic headers
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -1 +1,14 @@
|
||||
/*
|
||||
* This file is part of a proprietary work.
|
||||
*
|
||||
* Copyright (c) 2025-2026 Fossorial, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This file is licensed under the Fossorial Commercial License.
|
||||
* You may not use this file except in compliance with the License.
|
||||
* Unauthorized use, copying, modification, or distribution is strictly prohibited.
|
||||
*
|
||||
* This file is not licensed under the AGPLv3.
|
||||
*/
|
||||
|
||||
export * from "./server";
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
/*
|
||||
* This file is part of a proprietary work.
|
||||
*
|
||||
* Copyright (c) 2025-2026 Fossorial, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This file is licensed under the Fossorial Commercial License.
|
||||
* You may not use this file except in compliance with the License.
|
||||
* Unauthorized use, copying, modification, or distribution is strictly prohibited.
|
||||
*
|
||||
* This file is not licensed under the AGPLv3.
|
||||
*/
|
||||
|
||||
import * as dgram from "dgram";
|
||||
import * as dns from "dns-packet";
|
||||
import NodeCache from "node-cache";
|
||||
|
||||
Reference in New Issue
Block a user