1
0
mirror of https://github.com/Ylianst/MeshCommander synced 2025-12-06 06:03:20 +00:00

Fix WebSocket auth on AMT 12

Fixes #24
This commit is contained in:
Simon Arlott
2020-07-25 21:57:15 +01:00
parent 17bd7d0e9d
commit 55eb3c69cb

View File

@@ -107,8 +107,8 @@ var CreateAmtRedirect = function (module, authCookie) {
obj.directSend(new Uint8Array([0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00])); // Query for available authentication
// ###END###{!Mode-Firmware}
// ###BEGIN###{Mode-Firmware}
// When using websocket, we are already authenticated. Send empty basic auth.
obj.directSend(new Uint8Array([0x13, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00]));
// When using websocket, we are already authenticated. Send empty kerberos auth.
obj.directSend(new Uint8Array([0x13, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00]));
// ###END###{Mode-Firmware}
cmdsize = (13 + oemlen);
break;