"Enable DHCP server" button doesn't work
Prerequisites
-
[x] I have checked the Wiki and Discussions and found no answer
-
[x] I have searched other issues and found no duplicates
-
[x] I want to report a bug and not ask a question or ask for help
-
[x] I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Linux, ARM64
Installation
Docker
Setup
On one machine
AdGuard Home version
v0.107.62
Action
When clicking "Enable DHCP server" nothing happens:
- no network request is visible in the browser's network tab,
- yaml config file is not changed and stays set to
false.
Manually modifying config file to true enables DHCP and it correctly assigns leases. I didn't check the static reservation, but the DHCP itself works, it's just it cannot be enabled through WebUI.
Disabling DHCP server from WebUI works as expected.
Expected result
DHCP server being enabled and config file being updated accordingly.
Actual result
As described in "Action".
Additional information and/or screenshots
No response
How would DHCP work within a docker containter? Are you using network type of "host"?
I will ask the Devs about this - prehaps there is a check that says "If within docker don't allow DHCP to be enabled" or similar.
Yes, I'm using AGH in docker container with the host network mode. The problem is not that the DHCP doesn't work, but that the button within the AGH WebUI for enabling it doesn't work. The DHCP can be enabled manually within the config, and it works fine.
Image proof of working DHCP:
I'll flag this to the devs.
@jkazimierczak, just to be clear, have you pressed Check for DHCP servers first? What was the result? The Enable DHCP server button is only unblocked once the check has been done.
Hey @ainar-g, AdGuard fails to complete the check. But you're right, despite the failed check, Enable DHCP server button stops being disabled and I can enable the DHCP server from WebUI. If this is intended flow, maybe a tooltip on disabled buttons or a mention in the settings description would provide a good hint on what to do?
Yes, that's how it's supposed to work. I agree that it's not very user-friendly. We'll try to fix it in the near future. Thank you.