2
index.js
2
index.js
@@ -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);
|
||||||
|
|||||||
Referencia en una nueva incidencia
Block a user