Commit 3d03658a authored by simon's avatar simon

fix(eap): concat buffers if they are an array

parent e71f0b3d
...@@ -32,7 +32,11 @@ export class EAPPacketHandler implements IPacketHandler { ...@@ -32,7 +32,11 @@ export class EAPPacketHandler implements IPacketHandler {
} }
// EAP MESSAGE // EAP MESSAGE
const msg = packet.attributes['EAP-Message'] as Buffer; let msg = packet.attributes['EAP-Message'] as Buffer;
if (Array.isArray(msg)) {
msg = Buffer.concat(msg);
}
try { try {
const { code, type, identifier, data } = decodeEAPHeader(msg); const { code, type, identifier, data } = decodeEAPHeader(msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment