From 86c0228a7809826b9afaf59006714ac7a2fdddf0 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Mon, 22 Apr 2024 19:12:48 +0300 Subject: [PATCH] Update web-terminal.js --- web/resources/js/web-terminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/resources/js/web-terminal.js b/web/resources/js/web-terminal.js index 0a14b5b..3f0f821 100644 --- a/web/resources/js/web-terminal.js +++ b/web/resources/js/web-terminal.js @@ -45,7 +45,7 @@ if (terminalElement !== null) { fitAddon.fit(); - const socket = new WebSocket(`ws://49.13.166.115:3311`); + const socket = new WebSocket(`ws://${window.location.host}/_shell/`); socket.addEventListener('open', (_) => { terminal.onData((data) => socket.send(data)); socket.addEventListener('message', (evt) => terminal.write(evt.data));