Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netstat options.filter.state - LISTEN vs LISTENING #42

Open
nktnet1 opened this issue Nov 6, 2023 · 1 comment
Open

Netstat options.filter.state - LISTEN vs LISTENING #42

nktnet1 opened this issue Nov 6, 2023 · 1 comment

Comments

@nktnet1
Copy link

nktnet1 commented Nov 6, 2023

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 pushed a commit to nktnet1/sync-dev-server that referenced this issue Nov 6, 2023
@danielkrainas
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants