mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-03 18:04:40 +01:00
DHCP detection doesn't seem to work as non-root
Maybe it should be started before the uid switch
This commit is contained in:
parent
5b8c65a42e
commit
65ada71a34
1 changed files with 3 additions and 0 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Reference in a new issue