Fix SSL terminals and fix SSL issues

This commit is contained in:
LukeGus
2025-09-25 23:40:25 -05:00
parent 9b1dbdcc0a
commit edbc2b978c
3 changed files with 4 additions and 3 deletions

View File

@@ -321,7 +321,7 @@ export const Terminal = forwardRef<any, SSHTerminalProps>(function SSHTerminal(
? "wss://"
: "ws://";
const wsHost = baseUrl.replace(/^https?:\/\//, "");
return `${wsProtocol}${wsHost.replace(':30001', ':30002')}/ssh/websocket/`;
return `${wsProtocol}${wsHost}/ssh/websocket/`;
})()
: `${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ssh/websocket/`;