From 71f6c1a86b3eb5a4fd9e199cd767d03719e62c3d Mon Sep 17 00:00:00 2001 From: ntaken <71373110+ntaken@users.noreply.github.com> Date: Fri, 25 Sep 2020 08:55:56 +0200 Subject: [PATCH] Update gateone.js [SOLVED] Fix for location cannot contain dots (ie IP addresses) #733 https://github.com/liftoff/GateOne/issues/733 --- gateone/static/gateone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateone/static/gateone.js b/gateone/static/gateone.js index 6804eb0b..87ca64bc 100644 --- a/gateone/static/gateone.js +++ b/gateone/static/gateone.js @@ -476,7 +476,7 @@ var go = GateOne.Base.update(GateOne, { go.prefs[setting] = queryPrefs[setting]; } // Make our prefix unique to our location - go.prefs.prefix += go.location + '_'; + go.prefs.prefix += go.location.replace(/\./g, 'dot') + '_'; // Capabilities Notifications if (!go.prefs.skipChecks) { if (!WebSocket) {