Fixed MeshCtrl.js shell login.

Ylian Saint-Hilaire committed Jul 14, 2020 at 11:28 UTC 3f105dd5c5fada119e62310e7bb5343956ca601e
1 file changed +1 -1
meshctrl.js
+1 -1
@@ -847,7 +847,7 @@ function serverConnect() {
847 if ((args.id.split('/') != 3) && (settings.currentDomain != null)) { args.id = 'node/' + settings.currentDomain + '/' + args.id; }
848 var id = getRandomHex(6);
849 ws.send(JSON.stringify({ action: 'msg', nodeid: args.id, type: 'tunnel', usage: 1, value: '*/meshrelay.ashx?p=1&nodeid=' + args.id + '&id=' + id + '&rauth=' + data.rcookie, responseid: 'meshctrl' }));
850 - connectShell(url.replace('/control.ashx', '/meshrelay.ashx?browser=1&p=1&nodeid=' + args.id + '&id=' + id + '&rauth=' + data.cookie));
850 + connectShell(url.replace('/control.ashx', '/meshrelay.ashx?browser=1&p=1&nodeid=' + args.id + '&id=' + id + '&auth=' + data.cookie));
851 }
852 break;
853 }