mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-03 18:04:40 +01:00
Skip DHCP detectors that couldn't be started
This commit is contained in:
parent
cff909aa6f
commit
0208ecf35a
1 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,7 @@ func (plugin *PluginForward) Init(proxy *Proxy) error {
|
|||
d6 := &dhcpdns.Detector{RemoteIPPort: "[2001:DB8::53]:80"}
|
||||
if err := d6.Detect(); err != nil {
|
||||
dlog.Criticalf("Failed to start the DHCP/DNS IPv6 server: %s", err)
|
||||
continue
|
||||
}
|
||||
go d6.Serve(9, 10)
|
||||
plugin.dhcpdns = append(plugin.dhcpdns, d6)
|
||||
|
@ -139,6 +140,7 @@ func (plugin *PluginForward) Init(proxy *Proxy) error {
|
|||
d4 := &dhcpdns.Detector{RemoteIPPort: "192.0.2.53:80"}
|
||||
if err := d4.Detect(); err != nil {
|
||||
dlog.Criticalf("Failed to start the DHCP/DNS IPv4 server: %s", err)
|
||||
continue
|
||||
}
|
||||
go d4.Serve(9, 10)
|
||||
plugin.dhcpdns = append(plugin.dhcpdns, d4)
|
||||
|
|
Loading…
Add table
Reference in a new issue