iij / mruby-ipaddr

IPAddr class for mruby
6 stars 6 forks source link

Any support for `IPAddr#include?` planned? #2

Open bjeanes opened 8 years ago

bjeanes commented 8 years ago

I'd like to be able to build some IP whitelist/black list into NGINX proxy using https://github.com/matsumoto-r/ngx_mruby. Being able to whitelist/blacklist a CIDR would be much easier with a good way to test the range, without using Regex like in https://github.com/kaihar4/mruby-ipaddress_matcher (which is IPv4 only, by the way).

I am wondering how hard it would be to have #include? added to this gem.

Thank you

tsahara commented 8 years ago

It will not be too hard but nobody is working on it as far as I know.