Fix SSH host

This commit is contained in:
marcos
2017-12-15 15:43:24 -03:00
parent 26a7f8c0d7
commit 1e719e47b3
2 changed files with 3 additions and 2 deletions

View File

@@ -23,6 +23,7 @@
$scope.sessionId = SessionService.getCurrentSessionId();
$scope.instances = [];
$scope.idx = {};
$scope.host = window.location.host;
$scope.idxByHostname = {};
$scope.selectedInstance = null;
$scope.isAlive = true;
@@ -391,7 +392,7 @@
}
$scope.getProxyUrl = function(instance, port) {
var url = 'http://' + instance.proxy_host + '-' + port + '.direct.' + window.location.host;
var url = 'http://' + instance.proxy_host + '-' + port + '.direct.' + $scope.host;
return url;
}