lua-resty-ipmatcher icon indicating copy to clipboard operation
lua-resty-ipmatcher copied to clipboard

High-performance match IP address for Nginx + Lua

Results 6 lua-resty-ipmatcher issues
Sort by recently updated
recently updated
newest added

Remove _VERSION as it is not being used.

The release version (0.6.1) does not match the version number in the file (0.3). Is this intentional?

This: ``` ipmatcher.new({"0.0.0.0/asdfsdf", "0.0.0.0/-1", "0.0.0.0/343546w3462343" }) ``` return a table, while this returns `nil, "invalid ip address: blaa0.0.0.0"`: ``` ipmatcher.new({"blaa0.0.0.0/asdfsdf", "0.0.0.0/-1", "0.0.0.0/343546w3462343" }) ``` Perhaps the first should also return...

Add is private method: ```lua ip:isPrivate("127.0.0.1") ip:isPrivateV4("127.0.0.1") ip:isPrivateV6("fd12:3456:789a:1::1") ip:isPublic("8.8.8.8") ip:isPublicV4("8.8.8.8") ip:isPublicV6("2400:cb00::/32") ``` https://en.wikipedia.org/wiki/Private_network | RFC1918 name | IP address range | Number of addresses | Largest [CIDR](/wiki/Classless_Inter-Domain_Routing "Classless Inter-Domain Routing")...

enhancement

I have about 3000 IP ranges that need to be added to check, is there any optimal way to add them?

Hello! I hope you are doing well! We are a security research team. Our tool automatically detected a vulnerability in this repository. We want to disclose it responsibly. GitHub has...