fix: handle missing split dns config (#129)

Closes #127
This commit is contained in:
Gage Orsburn 2025-03-11 15:12:49 -04:00 committed by GitHub
parent 983356611e
commit 21af5c4a4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,7 +106,7 @@ const headscaleConfig = type({
base_domain: 'string = "headscale.net"',
nameservers: type({
'global?': 'string[]',
'split?': 'Record<string, string[]>',
'split': type('Record<string, string[]>').default(() => ({})),
}).default(() => ({ global: [], split: {} })),
search_domains: type('string[]').default(() => []),
extra_records: type({