fix amt bare-metal checkbox in web ui

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2025-07-24 17:59:35 +01:00
parent b770086132
commit a63a1de2f2
2 changed files with 4 additions and 2 deletions

View File

@ -5466,7 +5466,8 @@
} }
function showAmtAcmSetupEx() { function showAmtAcmSetupEx() {
meshserver.send({ action: 'amtsetupbin', oldmebxpass: Q('dp1password0').value, newmebxpass: Q('dp1password1').value, baremetal: ((features2 & 0x00000020) && (Q('dp1lanprov').checked)) }); var baremetal = ((features2 & 0x00000020) && (currentMesh.mtype == 1) && (serverinfo.amtProvServerMeshId == currentMesh._id) && (Q('dp1lanprov').checked));
meshserver.send({ action: 'amtsetupbin', oldmebxpass: Q('dp1password0').value, newmebxpass: Q('dp1password1').value, baremetal: baremetal });
} }
// Display the Intel AMT scanning dialog box // Display the Intel AMT scanning dialog box

View File

@ -6005,7 +6005,8 @@
} }
function showAmtAcmSetupEx() { function showAmtAcmSetupEx() {
meshserver.send({ action: 'amtsetupbin', oldmebxpass: Q('dp1password0').value, newmebxpass: Q('dp1password1').value, baremetal: ((features2 & 0x00000020) && (Q('dp1lanprov').checked)) }); var baremetal = ((features2 & 0x00000020) && (currentMesh.mtype == 1) && (serverinfo.amtProvServerMeshId == currentMesh._id) && (Q('dp1lanprov').checked));
meshserver.send({ action: 'amtsetupbin', oldmebxpass: Q('dp1password0').value, newmebxpass: Q('dp1password1').value, baremetal: baremetal });
} }
// Display the Intel AMT scanning dialog box // Display the Intel AMT scanning dialog box