diff --git a/control/controlhttp/client_js.go b/control/controlhttp/client_js.go index cc05b5b19..934a5e742 100644 --- a/control/controlhttp/client_js.go +++ b/control/controlhttp/client_js.go @@ -36,6 +36,9 @@ func (d *Dialer) Dial(ctx context.Context) (*ClientConn, error) { wsScheme = "ws" host = net.JoinHostPort(host, d.HTTPPort) } + if d.HTTPSPort != "" && d.HTTPSPort != "443" { + host = net.JoinHostPort(host, d.HTTPSPort) + } wsURL := &url.URL{ Scheme: wsScheme, Host: host,