Skip to content

Commit

Permalink
fix order - oops
Browse files Browse the repository at this point in the history
  • Loading branch information
James Hannah committed Aug 17, 2016
1 parent cb4aeb9 commit e77fdcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipgrep.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e77fdcb

Please sign in to comment.