From 34d55db3b1d6526f5d60ba52e04887b18215ead7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 15 Nov 2022 15:48:14 -0500 Subject: [PATCH] *Ensure data is a buffer --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c2b5204..3961222 100644 --- a/src/index.ts +++ b/src/index.ts @@ -137,7 +137,7 @@ export default class DHTFlood extends EventEmitter { originId: id, messageNumber, ttl, - data, + data: b4a.from(data), }); } }