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

IP Address Update #54

Merged
merged 1 commit into from
Jun 18, 2024
Merged

IP Address Update #54

merged 1 commit into from
Jun 18, 2024

Conversation

dvelopin
Copy link
Contributor

New getIPAddress() function to make getting end user IP address friendly with AWS Load Balancer, for example.

@stefangabos stefangabos merged commit 7edbb33 into stefangabos:master Jun 18, 2024
@stefangabos
Copy link
Owner

thanks! i did some code formatting but it's still pretty much your code. i love the fact that you used getenv, i didn't know about it

stefangabos added a commit that referenced this pull request Sep 8, 2024
… for #54 and #43 and provides a more secure - but different - way for handling your app being behind a load balancer or a reverse proxy
@stefangabos
Copy link
Owner

There's a new way of doing this, the previous solution was removed, so updating to 4.1.0 will break your code. Use instead a callable for the lock_to_ip argument in the constructor. See the docs

@dvelopin
Copy link
Contributor Author

This makes sense, I like the new granular control for a better handle on what is allowed/expected. Great job on this.

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.

2 participants