From 79e0d86f4df95dcd90ef4471cf55b17187db8a78 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Sat, 6 May 2017 11:18:29 +0200 Subject: [PATCH] Fix socketio address Use relative address which should fix the socketion when configuring the listening address in the configuration file or when behind a reverse proxy. --- webterm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webterm.js b/webterm.js index f4e4f5e..2b91fc4 100644 --- a/webterm.js +++ b/webterm.js @@ -1,5 +1,5 @@ var containers = document.getElementsByClassName('terminaljs'), - socket = io('http://127.0.0.1:3000/pty'), term, stream; + socket = io('/pty'), term, stream; // Workaround exception on send. See https://github.com/nkzawa/socket.io-stream/issues/87. ss.forceBase64 = true;