warp-ws: use wss when charger URI is https (#33184)
This commit is contained in:
parent
c314e8e838
commit
fd095120d8
1 changed files with 5 additions and 1 deletions
|
|
@ -235,7 +235,11 @@ func parseURI(uri string) (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
if u.Scheme == "https" {
|
||||
u.Scheme = "wss"
|
||||
} else {
|
||||
u.Scheme = "ws"
|
||||
}
|
||||
u.Path = path.Join(u.Path, "/ws")
|
||||
|
||||
return u.String(), nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue