in dp_check/dp_check.go [1147:1157]
func parseAddress(address string) (net.IP, error) {
host, _, err := net.SplitHostPort(address)
if err != nil {
return nil, fmt.Errorf("failed to split %v into host and port: %v", address, err)
}
ip := net.ParseIP(host)
if ip == nil {
return nil, fmt.Errorf("failed to parse %v into an IP: %v", host, err)
}
return ip, nil
}