From b06bd1cfbe483f38ff3b504e6fd499c3b14cca76 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Thu, 2 Jan 2025 14:26:29 -0600 Subject: [PATCH] Fixes issue with incorrect HTTPS detection for reverse proxies. --- src/rust/lqosd/src/node_manager/js_build/src/pubsub/ws.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/lqosd/src/node_manager/js_build/src/pubsub/ws.js b/src/rust/lqosd/src/node_manager/js_build/src/pubsub/ws.js index c780aa6a..0b101d1e 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/pubsub/ws.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/pubsub/ws.js @@ -2,7 +2,7 @@ let ws = null; export function ws_proto() { - if (window.location.protocl === 'https') { + if (window.location.protocol.startsWith('https')) { return "wss://"; } else { return "ws://";