From 4d3b3c78f050c11a8322836fdaf1b5920489327b Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Tue, 15 Oct 2019 15:59:33 -0700 Subject: [PATCH] Relay cookie fix. --- package.json | 2 +- public/scripts/agent-redir-ws-0.1.0.js | 2 +- views/default-min.handlebars | 2 +- views/default-mobile-min.handlebars | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 3658eb99..d2161894 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.4.2-l", + "version": "0.4.2-m", "keywords": [ "Remote Management", "Intel AMT", diff --git a/public/scripts/agent-redir-ws-0.1.0.js b/public/scripts/agent-redir-ws-0.1.0.js index 531d627f..4dbdce82 100644 --- a/public/scripts/agent-redir-ws-0.1.0.js +++ b/public/scripts/agent-redir-ws-0.1.0.js @@ -51,7 +51,7 @@ var CreateAgentRedirect = function (meshserver, module, serverPublicNamePort, au obj.xxStateChange(1); //obj.meshserver.send({ action: 'msg', type: 'tunnel', nodeid: obj.nodeid, value: url2 }); var rurl = "*" + domainUrl + "meshrelay.ashx?p=" + obj.protocol + "&nodeid=" + nodeid + "&id=" + obj.tunnelid; - if ((rauthCookie != null) && (rauthCookie != '')) { rurl += '&rauth=' + rauthCookie; } + if ((rauthCookie != null) && (rauthCookie != '')) { rurl += ('&rauth=' + rauthCookie); } obj.meshserver.send({ action: 'msg', type: 'tunnel', nodeid: obj.nodeid, value: rurl, usage: obj.protocol }); //obj.debug("Agent Redir Start: " + url); } diff --git a/views/default-min.handlebars b/views/default-min.handlebars index 426bf0b9..e00aac4a 100644 --- a/views/default-min.handlebars +++ b/views/default-min.handlebars @@ -5837,7 +5837,7 @@ var CreateAgentRedirect = function (meshserver, module, serverPublicNamePort, au obj.xxStateChange(1); //obj.meshserver.send({ action: 'msg', type: 'tunnel', nodeid: obj.nodeid, value: url2 }); var rurl = "*" + domainUrl + "meshrelay.ashx?p=" + obj.protocol + "&nodeid=" + nodeid + "&id=" + obj.tunnelid; - if ((rauthCookie != null) && (rauthCookie != '')) { rurl += '&rauth=' + rauthCookie; } + if ((rauthCookie != null) && (rauthCookie != '')) { rurl += ('&rauth=' + rauthCookie); } obj.meshserver.send({ action: 'msg', type: 'tunnel', nodeid: obj.nodeid, value: rurl, usage: obj.protocol }); //obj.debug("Agent Redir Start: " + url); } diff --git a/views/default-mobile-min.handlebars b/views/default-mobile-min.handlebars index cc9bc78b..dfbd4b9a 100644 --- a/views/default-mobile-min.handlebars +++ b/views/default-mobile-min.handlebars @@ -1 +1 @@ - {{{title}}}
{{{title}}}
{{{title2}}}
\ No newline at end of file + {{{title}}}
{{{title}}}
{{{title2}}}
\ No newline at end of file