fix ip check in ipnet

pull/314/head
Darien Raymond 2016-10-19 15:38:31 +02:00
parent a7ef82ffbc
commit 35ba8710e0
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}