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

master
simon 4 years ago
parent e71f0b3d80
commit 3d03658a43

@ -32,7 +32,11 @@ export class EAPPacketHandler implements IPacketHandler {
}
// 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 {
const { code, type, identifier, data } = decodeEAPHeader(msg);

Loading…
Cancel
Save