From 35ba8710e0482940f0e0abf91c0fe2f990d53184 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 19 Oct 2016 15:38:31 +0200 Subject: [PATCH] fix ip check in ipnet --- common/net/ipnet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/net/ipnet.go b/common/net/ipnet.go index 2552a434..de97e39f 100644 --- a/common/net/ipnet.go +++ b/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 } }