-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
I can no longer use iptools.IpRangeList for INTERNAL_IPS #1928
Comments
Thanks for letting us know! Would you be interested in creating a PR to resolve this? |
I'm happy to. The commit doesn't state why a list was preferable. Looking around I assume the cast in 782bdd9 was done because in 7d77a34 the For the biggest compatibility and efficiency I'd say the I'll make a PR later today. |
The reason was that the suggested docker solution was to add the docker internal host IP address to |
The Docker IP is added to a local copy of the Django setting. This variable gets destroyed at the end of the function. I made the PR: #1929. I'm happy to amend it in any way should you so desire. |
I have commented on the pull request. The change makes sense to me. The toolbar won't have a problem when e.g. the |
Hello!
Long time happy user of DDT here.
With 782bdd9 I can no longer use iptools.IpRangeList with
INTERNAL_IPS
, it blows up when I want to whitelist a larger IP range such as IPv6. With smaller ranges such as10.0.0.0/8
it won't blow up but it will delay every request significantly while DDT waits forIpRangeList
to write out all the IP addresses.For now I simplified my configuration to work around it. My requirements have changed a bit over the years and I can live with this simplified setup, but I just wanted to let you know in case this fallout was undesirable.
The text was updated successfully, but these errors were encountered: