mirror of
https://github.com/tendermint/tendermint.git
synced 2025-12-23 06:15:19 +00:00
@@ -89,8 +89,10 @@ func NewWS(remoteAddr, endpoint string, options ...func(*WSClient)) (*WSClient,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// default to ws protocol, unless wss is explicitly specified
|
||||
if parsedURL.Scheme != protoWSS {
|
||||
// default to ws protocol, unless wss or https is specified
|
||||
if parsedURL.Scheme == protoHTTPS {
|
||||
parsedURL.Scheme = protoWSS
|
||||
} else if parsedURL.Scheme != protoWSS {
|
||||
parsedURL.Scheme = protoWS
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user