Skip to content

Commit

Permalink
replace ParseIP with net pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Oct 9, 2022
1 parent a845ba3 commit 8ab893d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/contains.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (
fmt.Println("See 'cidr contains -h' for help and examples")
os.Exit(1)
}
ip := core.ParseIP(args[1])
ip := net.ParseIP(args[1])
if ip == nil {
fmt.Printf("error: invalid IP address: %s\n", args[1])
fmt.Println("See 'cidr contains -h' for help and examples")
Expand Down

0 comments on commit 8ab893d

Please sign in to comment.