Allow packetDecoder to return promise
This commit is contained in:
@@ -27,7 +27,7 @@ export class RadiusService {
|
||||
msg: Buffer
|
||||
): Promise<{ data: Buffer; expectAcknowledgment?: boolean } | undefined> {
|
||||
const { packet, secret } = packageInterface.packetDecoder
|
||||
? packageInterface.packetDecoder(msg)
|
||||
? await packageInterface.packetDecoder(msg)
|
||||
: this.defaultDecoder(msg);
|
||||
|
||||
if (!packet) {
|
||||
|
||||
Reference in New Issue
Block a user