fix: hardening

This commit is contained in:
fufsob committed 2026-09-30 09:16:21 +00:00
1 parent f609334849
commit 18a2049a1c
19 files changed
+486 -119

No files matched your search

@@ -221,6 +221,14 @@ let
cfg.inbounds.routing.serverSource.ipv6 == null
|| lib.toInt (lib.last (lib.splitString "/" cfg.inbounds.routing.serverSource.ipv6)) <= 112
) "proxy-suite: inbounds.routing.serverSource.ipv6 must be a prefix of /112 or shorter")
# A user's number is the last group of their IPv6 address.
(mkAssertion
(
cfg.inbounds.routing.serverSource.ipv6 == null
|| lib.all (s: s.number <= 65535) derived.proxyInboundsSelfSources
)
"proxy-suite: with inbounds.routing.serverSource.ipv6, inbounds.users orders must be 65535 or less"
)
(mkAssertion
(
(