fix amt bare-metal checkbox in web ui
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Jul 24, 2025 at 17:59 UTC
a63a1de2f28db2718acb44ca96df7fe15c9f9bfd
2 files changed
+4
-2
views/default.handlebars
+2
-1
@@ -5466,7 +5466,8 @@
5466
}
5467
5468
function showAmtAcmSetupEx() {
5469
- meshserver.send({ action: 'amtsetupbin', oldmebxpass: Q('dp1password0').value, newmebxpass: Q('dp1password1').value, baremetal: ((features2 & 0x00000020) && (Q('dp1lanprov').checked)) });
5469
+ var baremetal = ((features2 & 0x00000020) && (currentMesh.mtype == 1) && (serverinfo.amtProvServerMeshId == currentMesh._id) && (Q('dp1lanprov').checked));
5470
+ meshserver.send({ action: 'amtsetupbin', oldmebxpass: Q('dp1password0').value, newmebxpass: Q('dp1password1').value, baremetal: baremetal });
5471
}
5472
5473
// Display the Intel AMT scanning dialog box
views/default3.handlebars
+2
-1
@@ -6005,7 +6005,8 @@
6005
}
6006
6007
function showAmtAcmSetupEx() {
6008
- meshserver.send({ action: 'amtsetupbin', oldmebxpass: Q('dp1password0').value, newmebxpass: Q('dp1password1').value, baremetal: ((features2 & 0x00000020) && (Q('dp1lanprov').checked)) });
6008
+ var baremetal = ((features2 & 0x00000020) && (currentMesh.mtype == 1) && (serverinfo.amtProvServerMeshId == currentMesh._id) && (Q('dp1lanprov').checked));
6009
+ meshserver.send({ action: 'amtsetupbin', oldmebxpass: Q('dp1password0').value, newmebxpass: Q('dp1password1').value, baremetal: baremetal });
6010
}
6011
6012
// Display the Intel AMT scanning dialog box