Reword the allowlist denial comment to match the branch it describes

This commit is contained in:
Viktor Liu
2026-09-23 09:55:21 +02:00
parent 6f4b2e099f
commit 9847cbfef5
+3 -2
View File
@@ -307,8 +307,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
}