fix(eap): concat buffers if they are an array
This commit is contained in:
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…
Reference in New Issue
Block a user