add amt relay events and fixamt recordings #6652

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458
2025-04-13 19:11:18 +01:00
parent 41d9241625
commit c249282554
5 changed files with 262 additions and 123 deletions

View File

@@ -577,7 +577,7 @@
var view = new Uint8Array(data.length);
for (var i = 0; i < data.length; i++) { view[i] = data.charCodeAt(i); }
if ((readState == 0) && (rstr2hex(data) == '4100000000000000')) {
if ((readState == 0) && (rstr2hex(data).startsWith('4100000000000000'))) {
// We are not authenticated, KVM data starts here.
readState = 1;
if (data.length > 8) { amtDesktop.ProcessBinaryData(view.slice(8).buffer); }