Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

cache: use secure websockets for HTTPS Plex addresses

John Clayton71b4f1ccabf4
diff --git a/backend/cache/plex.go b/backend/cache/plex.go
index f5464dde4..3a8dd5d19 100644
--- a/backend/cache/plex.go
+++ b/backend/cache/plex.go
@@ -108,7 +108,7 @@ func (p *plexConnector) closeWebsocket() {
func (p *plexConnector) listenWebsocket() {
u := strings.Replace(p.url.String(), "http://", "ws://", 1)
- u = strings.Replace(u, "https://", "ws://", 1)
+ u = strings.Replace(u, "https://", "wss://", 1)
conn, err := websocket.Dial(fmt.Sprintf(defPlexNotificationURL, strings.TrimRight(u, "/"), p.token),
"", "http://localhost")
if err != nil {