Skip to content
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

Add CIDR and wildcard matching #21

Closed
wants to merge 3 commits into from
Closed

Conversation

homeyjd
Copy link
Contributor

@homeyjd homeyjd commented Dec 31, 2018

Only activated if trusted proxy value contains a "*" (wildcard) or "/" (CIDR).
Uses strpos() on object-creation, so very low performance hit.
Tests are included.

I need CIDR matching for using this library within a load-balanced AWS VPC. There is no way to accurately predict the IP addresses for the load balancer nodes, you only know the IP range via CIDR block.

Only activated if trusted proxy value contains a "*" (wildcard) or "/" (CIDR)
@Elte156
Copy link

Elte156 commented Apr 15, 2019

I too need this functionality.

@pmous
Copy link
Contributor

pmous commented Oct 1, 2020

Hi @homeyjd Sorry, I saw your code just after I commited my own code. I think my code is a bit cleaner (no offence), although I only support CIDR. I really don't see the need for wildcards.
I see your code still is not merged. 2 years ago :-(. Any idea why it is not merged yet?

@akrabat
Copy link
Owner

akrabat commented Dec 7, 2020

I have no excuse for how long this has taken me to get to. I'm taking this, but it needed rebasing, which is #28.

@akrabat akrabat closed this Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants