From 65ada71a3417e36373ff605a5385b05d6a55ef55 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 10 Jan 2025 23:27:41 +0100 Subject: [PATCH] DHCP detection doesn't seem to work as non-root Maybe it should be started before the uid switch --- dnscrypt-proxy/plugin_forward.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dnscrypt-proxy/plugin_forward.go b/dnscrypt-proxy/plugin_forward.go index 9a21cb0e..dd689e88 100644 --- a/dnscrypt-proxy/plugin_forward.go +++ b/dnscrypt-proxy/plugin_forward.go @@ -122,6 +122,9 @@ func (plugin *PluginForward) Init(proxy *Proxy) error { } } if requiresDHCP { + if len(proxy.userName) > 0 { + dlog.Warn("DHCP/DNS detection may not work when `user_name` is set or when starting as a non-root user") + } if proxy.SourceIPv6 { dlog.Info("Starting a DHCP/DNS detector for IPv6") d6 := &dhcpdns.Detector{RemoteIPPort: "[2001:DB8::53]:80"}