summaryrefslogtreecommitdiff
path: root/internal/authorization/ip_matcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/authorization/ip_matcher.go')
-rw-r--r--internal/authorization/ip_matcher.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/authorization/ip_matcher.go b/internal/authorization/ip_matcher.go
index c5814a537..ec8822417 100644
--- a/internal/authorization/ip_matcher.go
+++ b/internal/authorization/ip_matcher.go
@@ -17,9 +17,12 @@ func isIPMatching(ip net.IP, networks []string) bool {
if ip.String() == network {
return true
}
+
continue
}
+
_, ipNet, err := net.ParseCIDR(network)
+
if err != nil {
// TODO(c.michaud): make sure the rule is valid at startup to
// to such a case here.
@@ -30,5 +33,6 @@ func isIPMatching(ip net.IP, networks []string) bool {
return true
}
}
+
return false
}