Merge pull request #6280 from thaJeztah/28.x_backport_deprecate_ValidateHost

[28.x backport] opts: deprecate ValidateHost utility
This commit is contained in:
Austin Vazquez
2025-08-16 07:21:56 -07:00
committed by GitHub
+1 -1
View File
@@ -34,7 +34,7 @@ const (
// ValidateHost validates that the specified string is a valid host and returns it.
//
// TODO(thaJeztah): ValidateHost appears to be unused; deprecate it.
// Deprecated: this function is no longer used, and will be removed in the next release.
func ValidateHost(val string) (string, error) {
host := strings.TrimSpace(val)
// The empty string means default and is not handled by parseDockerDaemonHost