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

Private IP address problem on cloud server #51

Open
mcyg opened this issue Jan 15, 2020 · 2 comments
Open

Private IP address problem on cloud server #51

mcyg opened this issue Jan 15, 2020 · 2 comments

Comments

@mcyg
Copy link

mcyg commented Jan 15, 2020

When I am using ddev, vagrant or some cloud server solutions - extension does not work correct.
https://github.com/AOEpeople/aoe_ipauth/blob/master/Classes/Typo3/Service/Authentication.php#L90 value in that case is for example:
10.10.100.9
192.168.10.1
which are private IPs - thus IP authentication does not work at all in that case.

For example in case of my cloud server correct public IP address is inside $_SERVER['HTTP_X_REAL_IP'] and not REMOTE_ADDR

@mcyg mcyg changed the title Private IP address Private IP address problem Jan 15, 2020
@mcyg mcyg changed the title Private IP address problem Private IP address problem on cloud server Jan 16, 2020
@tomasnorre
Copy link
Contributor

Hi @mcyg

Could you provide a PR then I'll be happy to test it.

Thanks.

@davdenic
Copy link

@mcyg

on my ddev I have to use 172.18.0.10

maybe it helps
ciao

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

No branches or pull requests

3 participants