mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-03 20:21:44 +00:00
Fix inconsistency in IP address parsing errors
Signed-off-by: Solomon Hykes <solomon@docker.com>
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ func NewIpOpt(ref *net.IP, defaultVal string) *IpOpt {
|
||||
func (o *IpOpt) Set(val string) error {
|
||||
ip := net.ParseIP(val)
|
||||
if ip == nil {
|
||||
return fmt.Errorf("incorrect IP format")
|
||||
return fmt.Errorf("%s is not an ip address", val)
|
||||
}
|
||||
(*o.IP) = net.ParseIP(val)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user