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