fix setMinBytes

Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2026-02-11 21:51:01 +01:00
padre dd8f4979da
commit edb6626bf7

Ver fichero

@@ -447,8 +447,6 @@ function setupCapture(interfaceName) {
} }
logger.info(`Link type: ${linkType}`); logger.info(`Link type: ${linkType}`);
cap.setMinBytes(0);
cap.on('packet', (nbytes, trunc) => { cap.on('packet', (nbytes, trunc) => {
if (linkType === 'ETHERNET') { if (linkType === 'ETHERNET') {
const buffer = cap.buffer.slice(0, nbytes); const buffer = cap.buffer.slice(0, nbytes);