You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exit.Message(reason.Usage, "Sorry, the address provided with the --insecure-registry flag is invalid: {{.addr}}. Expected formtas are: <ip>:<port>, <hostname>:<port> or <network>/<netmask>", out.V{"addr": addr})
1133
+
}
1134
+
// checks both IPv4 and IPv6
1135
+
ipAddr:=net.ParseIP(hostnameOrIP)
1136
+
ifipAddr!=nil {
1137
+
continue
1138
+
}
1139
+
isValidHost:=hostRe.MatchString(hostnameOrIP)
1140
+
iferr!=nil||!isValidHost {
1141
+
exit.Message(reason.Usage, "Sorry, the address provided with the --insecure-registry flag is invalid: {{.addr}}. Expected formtas are: <ip>:<port>, <hostname>:<port> or <network>/<netmask>", out.V{"addr": addr})
0 commit comments