mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-07 03:49:00 +00:00
fix(webterminal): test
This commit is contained in:
parent
0e7a8c1a62
commit
dbb4904513
@ -13,7 +13,7 @@ WSSHClient.prototype._generateEndpoint = function (options) {
|
||||
var protocol = 'ws://';
|
||||
}
|
||||
|
||||
var endpoint = protocol + window.location.host + ':8080' + '/terminal';
|
||||
var endpoint = protocol + document.URL.match(RegExp('//(.*?)/'))[1] + '/ws/terminal';
|
||||
return endpoint;
|
||||
};
|
||||
WSSHClient.prototype.connect = function (options) {
|
||||
|
Loading…
Reference in New Issue
Block a user