dnsforward: fix http rdns check
This commit is contained in:
parent
5eaa024b11
commit
ee7202a7b4
|
@ -340,7 +340,13 @@ func (req *jsonDNSConfig) checkPrivateRDNS(
|
||||||
sysResolvers SystemResolvers,
|
sysResolvers SystemResolvers,
|
||||||
privateNets netutil.SubnetSet,
|
privateNets netutil.SubnetSet,
|
||||||
) (err error) {
|
) (err error) {
|
||||||
if (req.UsePrivateRDNS == nil || !*req.UsePrivateRDNS) && req.LocalPTRUpstreams == nil {
|
switch {
|
||||||
|
case
|
||||||
|
req.UsePrivateRDNS != nil && *req.UsePrivateRDNS,
|
||||||
|
req.LocalPTRUpstreams != nil && len(*req.LocalPTRUpstreams) > 0:
|
||||||
|
// Only check the private RDNS servers if its usage has just been
|
||||||
|
// enabled or if it contains any addresses.
|
||||||
|
default:
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue