Better error handling on -deny
& -allow
flags
#371
Labels
Status: Completed
Nothing further to be done with this issue. Awaiting to be closed.
Type: Enhancement
Most issues will probably ask for additions or changes.
It's not clear on the doc what is the correct syntax for
-allow
&-deny
flags.For example, if i try:
echo http://localhost | httpx -json -probe -deny 127.0.0.0/8,10.0.0.0/8 | gron
httpx runs the query without error, even thought this comma-separated syntax is invalid
For it to work each CIDR must be added with a new
-deny
:echo http://localhost | httpx -json -probe -deny 127.0.0.0/8 -deny 10.0.0.0/8 | gron
But unless the user takes time to launche a local webserv, and try syntax until it works, it's confusing because httpx doesn't fail when syntax is invalid.
I would expect an error like
Invalid IP or CIDR: '127.0.0.0/8,10.0.0.0/8'
, so user is easily able to infer which is the correct syntax.The text was updated successfully, but these errors were encountered: