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

Failure to detect a proxy IP results in none #3

Closed
shadowhand opened this issue Jul 13, 2017 · 0 comments
Closed

Failure to detect a proxy IP results in none #3

shadowhand opened this issue Jul 13, 2017 · 0 comments
Labels

Comments

@shadowhand
Copy link
Member

Our production infrastructure includes a load balancer, so we use$clientIp->proxy() to enable the original IP address of the user.

However, in development there is no LB so proxy IP detection fails. Due to this condition, if no IP is detected during the loop, then a void return is used.

The solution is simple, add this to the end of the method:

return $ip;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant