From 15f9c714a28a062a4ec3a916675dccba98749788 Mon Sep 17 00:00:00 2001 From: bndw Date: Fri, 13 Feb 2026 21:20:50 -0800 Subject: fix: remove duplicate protocol prefix in WebSocket URL The template was hardcoding 'ws://' prefix, but when using --public-url we were already passing 'wss://'. This caused the URL to display as 'ws://wss://domain/'. Fix by: - Removing 'ws://' prefix from template - Always including protocol in the variable (ws:// or wss://) - Also add http:// prefix for local development consistency --- cmd/relay/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/relay/main.go') diff --git a/cmd/relay/main.go b/cmd/relay/main.go index a7daa50..a928238 100644 --- a/cmd/relay/main.go +++ b/cmd/relay/main.go @@ -63,8 +63,8 @@ func main() { } else { // Use local addresses for development grpcDisplay = *grpcAddr - httpDisplay = *wsAddr - wsDisplay = *wsAddr + httpDisplay = "http://" + *wsAddr + wsDisplay = "ws://" + *wsAddr } wsHandler.SetIndexData(grpcDisplay, httpDisplay, wsDisplay) mux.Handle("/", wsHandler) -- cgit v1.2.3