Skip to content

Commit 65ada71

Browse files
committed
DHCP detection doesn't seem to work as non-root
Maybe it should be started before the uid switch
1 parent 5b8c65a commit 65ada71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dnscrypt-proxy/plugin_forward.go

+3
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ func (plugin *PluginForward) Init(proxy *Proxy) error {
122122
}
123123
}
124124
if requiresDHCP {
125+
if len(proxy.userName) > 0 {
126+
dlog.Warn("DHCP/DNS detection may not work when `user_name` is set or when starting as a non-root user")
127+
}
125128
if proxy.SourceIPv6 {
126129
dlog.Info("Starting a DHCP/DNS detector for IPv6")
127130
d6 := &dhcpdns.Detector{RemoteIPPort: "[2001:DB8::53]:80"}

0 commit comments

Comments
 (0)