Skip to content

Commit d0ac0ac

Browse files
committed
opts: deprecate ValidateHost utility
The `ValidateHost` option was introduced in [moby@1ba1138] to be used as validation func for the `--host` flag on the daemon in and CLI in [moby@5e3f6e7], but is no longer used since [cli@6f61cf0]. which added support for `ssh://` connections, and required validation elsewhere. [moby@1ba1138]: moby/moby@1ba1138 [moby@5e3f6e7]: moby/moby@5e3f6e7 [cli@6f61cf0]: 6f61cf0 Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 53b6fdd commit d0ac0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opts/hosts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const (
3434

3535
// ValidateHost validates that the specified string is a valid host and returns it.
3636
//
37-
// TODO(thaJeztah): ValidateHost appears to be unused; deprecate it.
37+
// Deprecated: this function is no longer used, and will be removed in the next release.
3838
func ValidateHost(val string) (string, error) {
3939
host := strings.TrimSpace(val)
4040
// The empty string means default and is not handled by parseDockerDaemonHost

0 commit comments

Comments
 (0)