소스 검색

fix ip check in ipnet

Darien Raymond 9 년 전
부모
커밋
35ba8710e0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 		}
 	}