Przeglądaj źródła

fix ip check in ipnet

Darien Raymond 9 lat temu
rodzic
commit
35ba8710e0
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 		}
 	}