SSH Terminal fix.
Ylian Saint-Hilaire committed
May 9, 2021 at 09:38 UTC
da70dc25aa585b1846231a637ab5ba06e97b4fd6
1 file changed
+2
-2
views/default.handlebars
+2
-2
@@ -6555,7 +6555,7 @@
6555
if (consoleRights) { setupConsole(); } else { if (panel == 15) { panel = 10; } }
6556
6557
// If we are looking at a local non-windows device, enable terminal capability.
6558
- if ((mesh.mtype == 3) && (node.agent != null) && (node.agent.id > 4)) { node.agent.caps = 2; }
6558
+ if ((mesh.mtype == 3) && (node.agent != null) && (node.agent.id > 4) && (features2 & 0x00000200)) { node.agent.caps = 2; }
6559
6560
// Show or hide the tabs
6561
// mesh.mtype: 1 = Intel AMT only, 2 = Mesh Agent, 3 = Local Device
@@ -8552,7 +8552,7 @@
8552
var termState = ((terminal != null) && (terminal.state != 0));
8553
8554
// If we are looking at a local non-windows device, enable terminal capability.
8555
- if ((terminalNode.mtype == 3) && (terminalNode.agent != null) && (terminalNode.agent.id > 4)) { terminalNode.agent.caps = 2; }
8555
+ if ((terminalNode.mtype == 3) && (terminalNode.agent != null) && (terminalNode.agent.id > 4) && (features2 & 0x00000200)) { terminalNode.agent.caps = 2; }
8556
8557
// Show the right buttons
8558
QV('disconnectbutton2span', (termState == true));