wasm/js: correctly handle non standard https port for custom control server websocket url

Signed-off-by: nom3ad <19239479+nom3ad@users.noreply.github.com>
pull/11970/head
nom3ad 1 month ago
parent 96712e10a7
commit 3e50addb2d

@ -35,6 +35,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,

Loading…
Cancel
Save