-
Notifications
You must be signed in to change notification settings - Fork 258
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
hosts-file-enabled
cannot be set from config file
#413
Comments
Updates #413. Squashed commit of the following: commit bd9b59b Author: Eugene Burkov <[email protected]> Date: Tue Aug 20 18:37:14 2024 +0300 cmd: rm dup todo commit edcd627 Author: Eugene Burkov <[email protected]> Date: Tue Aug 20 18:33:40 2024 +0300 cmd: unmarshal from yaml
@linuxgemini, hello and thanks for the detailed report. We've just committed the fix (559d2ef) for this issue to the master branch. Could you please build the |
The default also should not be |
Eventually, we have in mind making PS: Of course we're very far from it now, but nevertheless. |
I agree with @timkgh, at least until users / package maintainers become familiar with this option ... I also think it's best to pull the .73.0 release and replace it with a working release that includes the fix as I had issues with my openwrt router and internet due to dnsproxy crashing (with/without the hosts option disabled in config) which brought me here..
For impacted openwrt users - temporary fix would be to edit /etc/init.d/dnsproxy and add the following to load_config_list() section then restart dnsproxy:
|
Hi @EugeneOne1, sorry for the late reply; build from current master works yes. |
@linuxgemini, good to hear! We'll release the patch version later today. I'll close this issue for now. |
Hello,
hosts-file-enabled
usescmd.decodableBool
declared ininternal/cmd/options.go
:dnsproxy/internal/cmd/options.go
Lines 26 to 43 in 25e110a
While the option works as intended as a launch flag
--hosts-file-enabled=false
, setting it inside a YAML config (hosts-file-enabled: false
) will not work:Setting it as a string (
hosts-file-enabled: "false"
) also fails:I don't understand why exactly this occurs (I'm not really proficient in Go), one might omit the YAML flag (seen below) and use it as a command line argument:
dnsproxy/internal/cmd/options.go
Lines 233 to 235 in 25e110a
The text was updated successfully, but these errors were encountered: