From 71b4f1ccabf4423af6cd42f8498319e349b6400f Mon Sep 17 00:00:00 2001 From: John Clayton Date: Mon, 21 May 2018 09:40:16 -0600 Subject: [PATCH] cache: use secure websockets for HTTPS Plex addresses --- backend/cache/plex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {