mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 19:53:58 +00:00
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
### FEATURES
|
### FEATURES
|
||||||
|
|
||||||
|
- [rpc] support https inside websocket (@RiccardoM, @cmwaters)
|
||||||
|
|
||||||
### IMPROVEMENTS
|
### IMPROVEMENTS
|
||||||
|
|
||||||
### BUG FIXES
|
### BUG FIXES
|
||||||
|
|||||||
@@ -89,8 +89,10 @@ func NewWS(remoteAddr, endpoint string, options ...func(*WSClient)) (*WSClient,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
// default to ws protocol, unless wss is explicitly specified
|
// default to ws protocol, unless wss or https is specified
|
||||||
if parsedURL.Scheme != protoWSS {
|
if parsedURL.Scheme == protoHTTPS {
|
||||||
|
parsedURL.Scheme = protoWSS
|
||||||
|
} else if parsedURL.Scheme != protoWSS {
|
||||||
parsedURL.Scheme = protoWS
|
parsedURL.Scheme = protoWS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user