From 5da3cfdbc94c2042206c78b781c34d4e54a113c7 Mon Sep 17 00:00:00 2001 From: Cristian Pufu Date: Sun, 25 Aug 2024 17:15:52 +0300 Subject: [PATCH] Fix wss url trim end --- src/Tunnelite.Server/WsTunnel/WsTunnelMiddleware.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tunnelite.Server/WsTunnel/WsTunnelMiddleware.cs b/src/Tunnelite.Server/WsTunnel/WsTunnelMiddleware.cs index fe34f8b..09235ae 100644 --- a/src/Tunnelite.Server/WsTunnel/WsTunnelMiddleware.cs +++ b/src/Tunnelite.Server/WsTunnel/WsTunnelMiddleware.cs @@ -105,6 +105,6 @@ public static string ConvertHttpToWsUri(string? httpUrl) Query = query }; - return wsUri.Uri.ToString(); + return wsUri.Uri.ToString().TrimEnd(['/']); } }