diff --git a/http/client.go b/http/client.go index 14ae8e4..a5d914a 100644 --- a/http/client.go +++ b/http/client.go @@ -85,7 +85,9 @@ func ClientWithRawAbsPath(rawAbsPath bool) ClientOpt { // NewClient constructs a new HTTP-backed command executor. func NewClient(address string, opts ...ClientOpt) cmds.Executor { - if !strings.HasPrefix(address, "http://") { + if strings.Contains(address, "443") { + address = "https://" + address + } else if !strings.HasPrefix(address, "http://") { address = "http://" + address }