Add trusted_cidrs field to bypass all restriction layers

This commit is contained in:
Viktor Liu
2026-03-29 09:14:27 +02:00
parent 6a505ea51c
commit 9c1eb0d288
8 changed files with 341 additions and 240 deletions

View File

@@ -1325,6 +1325,7 @@ func (s *Server) parseRestrictions(mapping *proto.ProxyMapping) *restrict.Filter
}
return restrict.ParseFilter(restrict.FilterConfig{
TrustedCIDRs: r.GetTrustedCidrs(),
AllowedCIDRs: r.GetAllowedCidrs(),
BlockedCIDRs: r.GetBlockedCidrs(),
AllowedCountries: r.GetAllowedCountries(),