fix: process IPv6 Link-Local address (#1657)

This commit is contained in:
wwqgtxx
2024-11-18 10:34:43 +08:00
parent 25b3c86d31
commit 80e4eaad14
4 changed files with 25 additions and 26 deletions

View File

@@ -40,7 +40,7 @@ func (i *IPCIDR) Match(metadata *C.Metadata) (bool, string) {
if i.isSourceIP {
ip = metadata.SrcIP
}
return ip.IsValid() && i.ipnet.Contains(ip), i.adapter
return ip.IsValid() && i.ipnet.Contains(ip.WithZone("")), i.adapter
}
func (i *IPCIDR) Adapter() string {