Skip to content

Commit

Permalink
Update web-terminal.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bobicloudvision committed Apr 22, 2024
1 parent ccbc10a commit 86c0228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/resources/js/web-terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 86c0228

Please sign in to comment.