Pull request: 4525 fix panic
Merge in DNS/adguard-home from 3020-fix-panic to master Closes #4525. Squashed commit of the following: commit f8d9e25eccb485269aa2f0275d4e08da767f9d05 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Tue Apr 26 15:09:11 2022 +0300 home: imp code commit 8fe02c8f057c05b9e8ce1de056a92e7cd69ae4c6 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Tue Apr 26 14:44:33 2022 +0300 home: fix panic
This commit is contained in:
parent
235316e050
commit
1c89394aef
|
@ -135,9 +135,11 @@ func initDNSServer() (err error) {
|
||||||
return fmt.Errorf("dnsServer.Prepare: %w", err)
|
return fmt.Errorf("dnsServer.Prepare: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.Clients.Sources.RDNS {
|
||||||
Context.rdns = NewRDNS(Context.dnsServer, &Context.clients, config.DNS.UsePrivateRDNS)
|
Context.rdns = NewRDNS(Context.dnsServer, &Context.clients, config.DNS.UsePrivateRDNS)
|
||||||
|
}
|
||||||
|
|
||||||
if !config.Clients.Sources.WHOIS {
|
if config.Clients.Sources.WHOIS {
|
||||||
Context.whois = initWHOIS(&Context.clients)
|
Context.whois = initWHOIS(&Context.clients)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue