fix: use an enum and defaults for sandbox value

This commit is contained in:
Eli Bosley
2025-01-29 14:52:56 -05:00
parent 9c5e418872
commit 2108ed0ecd
3 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
version="3.11.0" version="3.11.0"
extraOrigins="https://google.com,https://test.com" extraOrigins="https://google.com,https://test.com"
[local] [local]
sandbox="" sandbox="no"
[remote] [remote]
wanaccess="yes" wanaccess="yes"
wanport="8443" wanport="8443"

View File

@@ -2,7 +2,7 @@
version="3.11.0" version="3.11.0"
extraOrigins="https://google.com,https://test.com" extraOrigins="https://google.com,https://test.com"
[local] [local]
sandbox="" sandbox="no"
[remote] [remote]
wanaccess="yes" wanaccess="yes"
wanport="8443" wanport="8443"

View File

@@ -42,7 +42,7 @@ const RemoteConfigSchema = z.object({
}); });
const LocalConfigSchema = z.object({ const LocalConfigSchema = z.object({
sandbox: z.string() sandbox: z.enum(['yes', 'no']).default('no'),
}); });
// Base config schema // Base config schema