Fixed bug, where Admin Terminal on Windows was looking for wrong protocol number for Powershell.
Bryan Roe committed
Jan 31, 2020 at 10:07 UTC
d4f87a3fe0880c8aa73c5ea220771fea5e8e0800
1 file changed
+1
-1
agents/meshcore.js
+1
-1
@@ -1161,7 +1161,7 @@ function createMeshCore(agent) {
1161
// this.httprequest._term = require('win-virtual-terminal')[this.httprequest.protocol == 6 ? 'StartPowerShell' : 'Start'](80, 25);
1162
1163
// The above line is commented out, because there is a bug with ClosePseudoConsole() API, so this is the workaround
1164
- this.httprequest._dispatcher = require('win-dispatcher').dispatch({ modules: [{ name: 'win-virtual-terminal', script: getJSModule('win-virtual-terminal') }], launch: { module: 'win-virtual-terminal', method: (this.httprequest.protocol == 9 ? 'StartPowerShell' : 'Start'), args: [cols, rows] } });
1164
+ this.httprequest._dispatcher = require('win-dispatcher').dispatch({ modules: [{ name: 'win-virtual-terminal', script: getJSModule('win-virtual-terminal') }], launch: { module: 'win-virtual-terminal', method: (this.httprequest.protocol == 6 ? 'StartPowerShell' : 'Start'), args: [cols, rows] } });
1165
this.httprequest._dispatcher.ws = this;
1166
this.httprequest._dispatcher.on('connection', function (c)
1167
{