Skip to content

Commit d0b1d90

Browse files
committed
v2.15.26
Fixed websocket path to support different contexts
1 parent 6e98a7a commit d0b1d90

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.keybox</groupId>
66
<artifactId>keybox</artifactId>
7-
<version>2.15.25</version>
7+
<version>2.15.26</version>
88
<packaging>war</packaging>
99
<name>KeyBox</name>
1010
<properties>

src/main/java/com/keybox/manage/socket/SecureShellWS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
/**
3737
* class to run commands and start thread to send web socket terminal output
3838
*/
39-
@ServerEndpoint(value = "/terms.ws", configurator = GetHttpSessionConfigurator.class)
39+
@ServerEndpoint(value = "/admin/terms.ws", configurator = GetHttpSessionConfigurator.class)
4040
@SuppressWarnings("unchecked")
4141
public class SecureShellWS {
4242
private HttpSession httpSession;

src/main/webapp/admin/secure_shell.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ $(document).ready(function () {
287287
} else {
288288
ws_uri = "ws:";
289289
}
290-
ws_uri += "//" + loc.host + '/terms.ws?t=' + new Date().getTime();
290+
ws_uri += "//" + loc.host + loc.pathname + '/../terms.ws?t=' + new Date().getTime();
291291
292292
var connection = new WebSocket(ws_uri);
293293

0 commit comments

Comments
 (0)