File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -32,23 +32,6 @@ const (
3232 hostGatewayName = "host-gateway"
3333)
3434
35- // ValidateHost validates that the specified string is a valid host and returns it.
36- //
37- // Deprecated: this function is no longer used, and will be removed in the next release.
38- func ValidateHost (val string ) (string , error ) {
39- host := strings .TrimSpace (val )
40- // The empty string means default and is not handled by parseDockerDaemonHost
41- if host != "" {
42- _ , err := parseDockerDaemonHost (host )
43- if err != nil {
44- return val , err
45- }
46- }
47- // Note: unlike most flag validators, we don't return the mutated value here
48- // we need to know what the user entered later (using ParseHost) to adjust for TLS
49- return val , nil
50- }
51-
5235// ParseHost and set defaults for a Daemon host string
5336func ParseHost (defaultToTLS bool , val string ) (string , error ) {
5437 host := strings .TrimSpace (val )
You can’t perform that action at this time.
0 commit comments