I'm trying out Warden against a site that is running behind Cloudflare. As such, the allowed IPs need to match Cloudflare's range of IPs, but the existing code does an exact match against a list of individual IPs.
I've attached a patch that uses Symfony's http-foundation to support masks, which has sorted things out for me. It's just a quick patch without taking the service and DI approach, and I'll also add that it could be tidied a bit further, since the checkIp function accepts a list of IPs / subnets to check against.
Needs review
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.