From 21af5c4a4d9e4b37886e35600445060e73ff7540 Mon Sep 17 00:00:00 2001 From: Gage Orsburn Date: Tue, 11 Mar 2025 15:12:49 -0400 Subject: [PATCH] fix: handle missing split dns config (#129) Closes #127 --- app/utils/config/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/config/parser.ts b/app/utils/config/parser.ts index 85964bf..7363987 100644 --- a/app/utils/config/parser.ts +++ b/app/utils/config/parser.ts @@ -106,7 +106,7 @@ const headscaleConfig = type({ base_domain: 'string = "headscale.net"', nameservers: type({ 'global?': 'string[]', - 'split?': 'Record', + 'split': type('Record').default(() => ({})), }).default(() => ({ global: [], split: {} })), search_domains: type('string[]').default(() => []), extra_records: type({