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(['/']); } }