bypass: wildcard matcher for ip

This commit is contained in:
ginuerzh
2024-09-24 20:19:48 +08:00
parent 8934cb6b1c
commit dd179bc951
+2 -2
View File
@@ -271,8 +271,8 @@ func (bp *localBypass) matched(addr string) bool {
host = addr
}
if ip := net.ParseIP(host); ip != nil {
return bp.cidrMatcher.Match(host)
if ip := net.ParseIP(host); ip != nil && bp.cidrMatcher.Match(host) {
return true
}
return bp.wildcardMatcher.Match(addr)