Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64d40bdc47 | ||
|
|
b1ca7c90d3 | ||
|
|
bde59364c6 | ||
|
|
a370cd0bf0 |
@@ -98,7 +98,7 @@ type FilteringConfig struct {
|
||||
|
||||
// Names of services to block (globally).
|
||||
// Per-client settings can override this configuration.
|
||||
BlockedServices []string `json:"blocked_services"`
|
||||
BlockedServices []string `yaml:"blocked_services"`
|
||||
|
||||
dnsfilter.Config `yaml:",inline"`
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user