mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-16 03:45:45 +03:00
Merge: - dnsforward: don't use dnsfilter object after it's closed (additional check)
* commit 'a370cd0bf035213ea7d09e1e577a4612934a8c5a': - dnsforward: don't use dnsfilter object after it's closed (additional check)
This commit is contained in:
commit
bde59364c6
@ -522,7 +522,7 @@ func (s *Server) filterDNSRequest(d *proxy.DNSContext) (*dnsfilter.Result, error
|
||||
|
||||
dnsFilter := s.dnsFilter
|
||||
|
||||
if !s.conf.ProtectionEnabled {
|
||||
if !s.conf.ProtectionEnabled || s.dnsFilter == nil {
|
||||
return &dnsfilter.Result{}, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user