-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
[RTM] Feature/trusted proxy support #176
[RTM] Feature/trusted proxy support #176
Conversation
I've noticed that too in https://github.com/contao/core-bundle/pull/72/files#diff-2f0eb5d18e0f5fb0dbaef526bb165d41R305 Should we add the |
BC of what? What would it help to add the variable? |
But what does it help? It sets a TL_CONFIG value that is never used. |
We don't know if extension developers used it. Same with SMTP, it's unlikely someone used it because the |
But it's not really possible because we did not support all the notations |
That's true, assuming people will start using IP ranges… |
Looks good to me. Let me know when it is RTM :) |
Okay for you and @aschempp so it's RTM for me :) |
Merging this will invalidate #128, right? |
Not invalidate but close :-)
|
We should also close my PR in contao/core for ip-range support and mention this |
Can you fix the tests please?
The method is probably missing in our kernel mock. |
|
Fixed. But now I have a new problem that's probably caused by some component overriding the |
I guess here's the problem: |
True, why is this? |
I guess because a default value is alway necessary… Maybe we should change that to something like this:
|
I have no idea. I think the |
Do the tests still work if you remove the line? |
Having similar issues in my pr. Stay tuned. Will search a solution tomorrow. |
I have fixed the tests and merged the PR in c375b7c. |
This is a PR for #128. I checked the code and imho our legacy code does exactly what Symfony's
Request::getClientIp()
does.Please double check this though :)