mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-29 23:19:08 +01:00
Clean up config for dns servers
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// Which entry point is running. Standalone entry points set this before
|
||||
// anything loads the config, so the config schema can skip requirements
|
||||
// that only apply to the full Pangolin server.
|
||||
export type RunMode = "server" | "dns";
|
||||
|
||||
let runMode: RunMode = "server";
|
||||
|
||||
export function setRunMode(mode: RunMode) {
|
||||
runMode = mode;
|
||||
}
|
||||
|
||||
export function getRunMode(): RunMode {
|
||||
return runMode;
|
||||
}
|
||||
Reference in New Issue
Block a user