From 0208ecf35a8e1517d6b1b20a6d74fdb6129cf32c Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 10 Jan 2025 23:40:41 +0100 Subject: [PATCH] Skip DHCP detectors that couldn't be started --- dnscrypt-proxy/plugin_forward.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dnscrypt-proxy/plugin_forward.go b/dnscrypt-proxy/plugin_forward.go index 6fe26176..08003299 100644 --- a/dnscrypt-proxy/plugin_forward.go +++ b/dnscrypt-proxy/plugin_forward.go @@ -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)