fix: Fixed guac connection
Server Deploy / deploy (push) Successful in 1m22s

This commit is contained in:
2026-07-17 13:40:54 +01:00
parent 3dff45350b
commit 763eafa4f8
2 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -85,10 +85,11 @@ export default function ServerConsolePage() {
const { token, ws_path } = await api.connectConsole(body);
const wsProto = location.protocol === "https:" ? "wss" : "ws";
const wsUrl = `${wsProto}://${location.host}${ws_path}?token=${encodeURIComponent(token)}`;
const wsUrl = `${wsProto}://${location.host}${ws_path}`;
const connectData = `token=${encodeURIComponent(token)}`;
if (containerRef.current) {
const conn = openConsole(containerRef.current, wsUrl);
const conn = openConsole(containerRef.current, wsUrl, connectData);
connectionRef.current = conn;
setConnected(true);
}