Skip to content

Commit

Permalink
Fixes issue with incorrect HTTPS detection for reverse proxies.
Browse files Browse the repository at this point in the history
  • Loading branch information
thebracket committed Jan 2, 2025
1 parent 758035d commit b06bd1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/lqosd/src/node_manager/js_build/src/pubsub/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -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://";
Expand Down

0 comments on commit b06bd1c

Please sign in to comment.