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

DEBUG TOOLBAR - fix INTERNAL_IPS discovery for docker #2528

Conversation

dudanogueira
Copy link
Contributor

A simple fix for the INTERNAL_IPS when using DOCKER

Rationale

For users with multiple containers, the DEBUG TOOL BAR stops showing up if the django container receives an IP higher than 9, ex 172.19.0.10, it becomes 172.19.0.11, not complying with the INTERNAL_IPS requirement.

The actual code doesn't consider this scenario. This fix will work for all scenarios.

Use case(s) / visualization(s)

Users that has a stack with numerous containers

previously, for IP ex: 172.19.0.13 becomes: 172.19.0.11
now, it becomes 172.19.0.1
@dudanogueira dudanogueira changed the title Dudanogueira fix internal ips djtoolbar DEBUG TOOLBAR - fix INTERNAL_IPS discovery for docker Apr 7, 2020
Copy link
Member

@browniebroke browniebroke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@browniebroke browniebroke merged commit 3a988a8 into cookiecutter:master Apr 8, 2020
@browniebroke
Copy link
Member

Thanks for the fix 🎉

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

Successfully merging this pull request may close these issues.

2 participants