mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-23 23:29:08 +02:00
Merge remote-tracking branch 'origin/reverse-proxy-allow-match-or' into reverse-proxy-crowdsec-appsec
This commit is contained in:
@@ -351,8 +351,9 @@ func (f *Filter) checkAny(addr netip.Addr, geo GeoResolver) Verdict {
|
||||
cidrAllowed ||
|
||||
(countryActive && country != "" && slices.Contains(f.AllowedCountries, country))
|
||||
if !allowed {
|
||||
// Both allowlists missing is reported against the CIDR list, the one
|
||||
// checked first, so the reason stays stable for existing access logs.
|
||||
// When neither allowlist admitted the address, the denial is reported
|
||||
// against the CIDR list, the one checked first, so the reason stays
|
||||
// stable for existing access logs.
|
||||
if cidrActive {
|
||||
return DenyCIDR
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user