feat(config): add config validator to avoid wrong settings

This commit is contained in:
nc
2026-06-10 01:22:18 +08:00
parent 125bc4bf3d
commit 7c5904cc47
3 changed files with 259 additions and 13 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ local_addr = "127.0.0.1:9090"
[[connect.web]] # others -> you
protocol = "tcp"
local_port = 9000
local_addr = "127.0.0.1" # default; set to 0.0.0.0 to expose on LAN
dst_addr = "any-client-in.ts.net:8080"
[[connect.minecraft]]
@@ -25,4 +26,4 @@ lan_motd = "Minecraft via Tailscale"
[[connect.udp_example]]
protocol = "udp"
local_port = 24454
dst_addr = "any-client-in.ts.net:24454"
dst_addr = "any-client-in.ts.net:24454"