File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -128,12 +128,18 @@ func (plugin *PluginForward) Init(proxy *Proxy) error {
128
128
if proxy .SourceIPv6 {
129
129
dlog .Notice ("Starting a DHCP/DNS detector for IPv6" )
130
130
d6 := & dhcpdns.Detector {RemoteIPPort : "[2001:DB8::53]:80" }
131
+ if err := d6 .Detect (); err != nil {
132
+ dlog .Criticalf ("Failed to start the DHCP/DNS IPv6 server: %s" , err )
133
+ }
131
134
go d6 .Serve (9 , 10 )
132
135
plugin .dhcpdns = append (plugin .dhcpdns , d6 )
133
136
}
134
137
if proxy .SourceIPv4 {
135
138
dlog .Notice ("Starting a DHCP/DNS detector for IPv4" )
136
139
d4 := & dhcpdns.Detector {RemoteIPPort : "192.0.2.53:80" }
140
+ if err := d4 .Detect (); err != nil {
141
+ dlog .Criticalf ("Failed to start the DHCP/DNS IPv4 server: %s" , err )
142
+ }
137
143
go d4 .Serve (9 , 10 )
138
144
plugin .dhcpdns = append (plugin .dhcpdns , d4 )
139
145
}
You can’t perform that action at this time.
0 commit comments