node-netstat icon indicating copy to clipboard operation
node-netstat copied to clipboard

Netstat options.filter.state - LISTEN vs LISTENING

Open nktnet1 opened this issue 1 year ago • 1 comments

On Windows, the state for a started HTTP server is LISTENING, but on Linux, it's LISTEN.

Is there a way to consolidate these differences when filtering?

Also, it would be nice if all filter conditions allow for AND/OR operators, or takes an array of possible values to match.

Thank you :).

nktnet1 avatar Nov 06 '23 10:11 nktnet1

@nktnet1 as a quick fix: by omitting any filter to node-netstat, you can apply your own advanced filtering strategy in the item handler. I could also look at adding support for specifying a predicate function on the filter object to allow you to enforce whatever logic you'd like

danielkrainas avatar Nov 06 '23 14:11 danielkrainas