warp-ws: use wss when charger URI is https (#33184)

This commit is contained in:
github-actions[bot] 2026-08-26 15:59:36 +02:00 • committed by GitHub
parent c314e8e838
commit fd095120d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -235,7 +235,11 @@ func parseURI(uri string) (string, error) {
return "", err return "", err
} }
u.Scheme = "ws" if u.Scheme == "https" {
u.Scheme = "wss"
} else {
u.Scheme = "ws"
}
u.Path = path.Join(u.Path, "/ws") u.Path = path.Join(u.Path, "/ws")
return u.String(), nil return u.String(), nil