Skip to content

allow both individual ports and ranges of ports to be passed as opt #796

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mikhail5555
Copy link
Contributor

@mikhail5555 mikhail5555 commented Jun 20, 2025

Added also the alias range to ports so it is still backwards compatiable.

closes #780

Edit i just saw this was already attempted to be implemented in #761 (comment), so i guess i will close this pr again since this is an unwanted feature (Or has the opinion on this changed since then?)

(My usecase: the top 10_000 ports is often too big of an argument to provide in one go to the tool, because it exceeds the linux argument length, so being able to combine individual ports & ranges is kinda a must for this use-case to stay under the max argument size)

@mikhail5555 mikhail5555 force-pushed the combine-ports-and-range-input branch from 3478a6f to aa113a3 Compare June 20, 2025 11:42
@mikhail5555 mikhail5555 force-pushed the combine-ports-and-range-input branch from dafd48e to b5d8818 Compare June 20, 2025 12:20
@mikhail5555 mikhail5555 force-pushed the combine-ports-and-range-input branch from 0ef3902 to 20cb239 Compare June 23, 2025 07:09
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

Successfully merging this pull request may close these issues.

Support for port range input like 1-22,661-669,8888 for both CLI and library usage
1 participant