Allow disabling of filtering but keeping querylog, safebrowsing, safesearch and parental working.

This commit is contained in:
Eugene Bujak
2018-09-25 19:26:26 +03:00
parent 50b188a086
commit 09a39cce03
3 changed files with 36 additions and 32 deletions

View File

@@ -20,7 +20,8 @@ func TestSetup(t *testing.T) {
config string
failing bool
}{
{`dnsfilter`, true},
{`dnsfilter`, false},
{`dnsfilter /dev/nonexistent/abcdef`, true},
{`dnsfilter ../tests/dns.txt`, false},
{`dnsfilter ../tests/dns.txt { safebrowsing }`, false},
{`dnsfilter ../tests/dns.txt { parental }`, true},