Skip to content

Commit 8ab893d

Browse files
replace ParseIP with net pkg
1 parent a845ba3 commit 8ab893d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/contains.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var (
3434
fmt.Println("See 'cidr contains -h' for help and examples")
3535
os.Exit(1)
3636
}
37-
ip := core.ParseIP(args[1])
37+
ip := net.ParseIP(args[1])
3838
if ip == nil {
3939
fmt.Printf("error: invalid IP address: %s\n", args[1])
4040
fmt.Println("See 'cidr contains -h' for help and examples")

0 commit comments

Comments
 (0)