fix: cannot ota upgrade when connect to remote node #424

This commit is contained in:
Jacky 2024-07-21 18:21:27 +08:00
parent f41b6bc07b
commit 7ef4fec896
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
8 changed files with 115 additions and 156 deletions

View file

@ -65,9 +65,7 @@ func (e *Environment) GetWebSocketURL(uri string) (decodedUri string, err error)
if err != nil {
return
}
// http will be replaced with ws, https will be replaced with wss
decodedUri = strings.ReplaceAll(decodedUri, "http", "ws")
return
}