diff --git a/www/assets/app.js b/www/assets/app.js index b7a1ff6..7b1d770 100644 --- a/www/assets/app.js +++ b/www/assets/app.js @@ -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; } diff --git a/www/default/index.html b/www/default/index.html index 07de953..0ec0af2 100644 --- a/www/default/index.html +++ b/www/default/index.html @@ -116,7 +116,7 @@ {{deleteInstanceBtnText}} - SSH + SSH Copied