From e77fdcbf9697932dac4d42839c2e7e681de29335 Mon Sep 17 00:00:00 2001 From: James Hannah Date: Wed, 17 Aug 2016 14:33:00 +0100 Subject: [PATCH] fix order - oops --- ipgrep.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipgrep.go b/ipgrep.go index fbcd332..7bdec0d 100644 --- a/ipgrep.go +++ b/ipgrep.go @@ -20,9 +20,9 @@ import ( func str2net(s string) (ipm *net.IPNet) { if !strings.Contains(s, "/") { if !strings.Contains(":") { - s += "/128" - } else { s += "/32" + } else { + s += "/128" } } _, ipm, err := net.ParseCIDR(s)