-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Once DHCP is enabled through environment variables, it can't be disabled #1688
Comments
Thanks for your report. This is clearly a bug. While the fix would be easy (mainly remove the |
Makes sense. I noticed that too, as I've opened a PR based from main branch and only then noticed that development branch didn't have this logic. As a workaround, setting |
Yeah, this kind of thing was something that annoy(ed/s) me with the current v5 container. It used to trip me up all the time when adding various FTL V6 directly reads environment variables, so we don't have to handle every single reversion in docker land. The logic is roughly along the lines of:
There will be links to this when we release but this does mean that some of the env vars names will have changed to their "FTL native" equivalents: https://deploy-preview-338--pihole-docs.netlify.app/docker/upgrading/v5-v6/#dhcp-variables |
@yubiuser @PromoFaux Looks nice! When do you expect to release the v6? |
There is no fixed release date. The release per-se is ready, we only need to coordinate the team to press the button and have enough developers in stand-by to fix any post-release issues quickly and handle support request. We don't want to release when noone is around. |
This is a: Bug
Details
Once DHCP is enabled through environment variables, it can't be disabled. This happens because the DHCP setup is only executed when the
DHCP_ACTIVE
environment variable is set totrue
. Source code:Related Issues
How to reproduce the issue
Edit
docker-compose.yml
and enable DHCP by setting DHCP_ACTIVE totrue
andDHCP_START
,DHCP_END
andDHCP_ROUTER
with the necessary values; rundocker compose up -d
. The Pi-hole UI should show that DHCP is enabled.Then, edit
docker-compose.yml
again and disable DHCP by setting DHCP_ACTIVE tofalse
; rundocker compose up -d
. The Pi-hole UI still shows that DHCP is enabled.These common fixes didn't work for my issue
docker run
example(s) in the readme (removing any customizations I added)If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.
The text was updated successfully, but these errors were encountered: