Closed
Description
I'm trying to connect to wss://ws.okx.com:8443/ws/v5/public
as a client and get error remote error: tls: handshake failure
.
Reason is this line
Line 59 in 5c407ad
option.TlsConfig.ServerName = URL.Hostname()
because URL.Host
includes port number, while URL.Hostname()
does not