Skip to content

Commit 0208ecf

Browse files
committed
Skip DHCP detectors that couldn't be started
1 parent cff909a commit 0208ecf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dnscrypt-proxy/plugin_forward.go

+2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ func (plugin *PluginForward) Init(proxy *Proxy) error {
130130
d6 := &dhcpdns.Detector{RemoteIPPort: "[2001:DB8::53]:80"}
131131
if err := d6.Detect(); err != nil {
132132
dlog.Criticalf("Failed to start the DHCP/DNS IPv6 server: %s", err)
133+
continue
133134
}
134135
go d6.Serve(9, 10)
135136
plugin.dhcpdns = append(plugin.dhcpdns, d6)
@@ -139,6 +140,7 @@ func (plugin *PluginForward) Init(proxy *Proxy) error {
139140
d4 := &dhcpdns.Detector{RemoteIPPort: "192.0.2.53:80"}
140141
if err := d4.Detect(); err != nil {
141142
dlog.Criticalf("Failed to start the DHCP/DNS IPv4 server: %s", err)
143+
continue
142144
}
143145
go d4.Serve(9, 10)
144146
plugin.dhcpdns = append(plugin.dhcpdns, d4)

0 commit comments

Comments
 (0)