-
Notifications
You must be signed in to change notification settings - Fork 45
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
Feature request: a more intelligent @resolve
(support CIDR notation)
#66
Comments
You mean like 562c810 |
Exactly ! |
In fact, not exactly.
if you need more stupid sample I can provide them ! :D |
There is something strange ... You show me an (old) commit for ferm 2.3.1 but I'm using ferm 2.4 and it does not resolve IP ? |
Maybe you shouldn't use ferm 2.4, because it's more than three years old. |
Debian stable use old and stable things ;-) I just don't understand 562c810 |
It is included, but look at the regular expression - it doesn't cover all the cases you cited. |
Are you open to work together to extend those regular expression to cover CIDR notation ? for A: Do you prefer PR ? |
Yes, yes. |
@resolve
@resolve
(support CIDR notation)
I take whitelist IPs from a plaintext file.
I'm trying to resolv entries, but some of them are already IP or IP-range (CIDR).
I would like to have:
There is my current code that split the file content:
The code to test can be:
I dreams a more intelligent
@resolve
function that is not tryting to resolve IP/IP-range.I think
@resolv()
can avoid resolution of entries that match^[0-9:./]$
.The text was updated successfully, but these errors were encountered: