Ver Fonte

fix ip check in ipnet

Darien Raymond há 9 anos atrás
pai
commit
35ba8710e0
1 ficheiros alterados com 1 adições e 1 exclusões
  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
 		}
 	}