Quellcode durchsuchen

fix ip check in ipnet

Darien Raymond vor 9 Jahren
Ursprung
Commit
35ba8710e0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      common/net/ipnet.go

+ 1 - 1
common/net/ipnet.go

@@ -61,7 +61,7 @@ func (this *IPNet) Contains(ip net.IP) bool {
 	originalValue := ipToUint32(ipv4)
 
 	if entry, found := this.cache[originalValue]; found {
-		if entry == 0 {
+		if entry == 32 {
 			return true
 		}
 	}