From 1e719e47b3319fa8530b33df8937c2001878c500 Mon Sep 17 00:00:00 2001 From: marcos Date: Fri, 15 Dec 2017 15:43:24 -0300 Subject: [PATCH] Fix SSH host --- www/assets/app.js | 3 ++- www/default/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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