Simon Zolin
8685584bf5
+ DNS Rewrites: support wildcard domain name
2019-12-20 16:45:58 +03:00
Simon Zolin
8dbdf49c32
* use dnsproxy v0.22.0 and urlfilter v0.7.0
2019-12-03 20:55:45 +03:00
Simon Zolin
7f69848084
+ dnsfilter: use AG DNS server for SB/PC services
...
* move SS/SB/PC services to security.go
* remove old useless code (HTTP client)
2019-11-08 10:38:12 +03:00
Simon Zolin
a59e346d4a
* dnsfilter: major refactoring
...
* dnsfilter is controlled by package home, not dnsforward
* move HTTP handlers to dnsfilter/
* apply filtering settings without DNS server restart
* use only 1 goroutine for filters update
* apply new filters quickly (after they are ready to be used)
2019-10-09 20:05:21 +03:00
Simon Zolin
c616259e8b
* dnsfilter: use golibs/cache
...
+ config: add cache size settings
+ config: add cache_time setting
2019-09-02 19:12:53 +03:00
Simon Zolin
56c69cdb79
Revert "fix tests"
...
This reverts commit d9265aa9a8
.
2019-08-16 15:11:57 +03:00
Simon Zolin
ccf72b6008
* safebrowsing/parental: split some code
...
* dnsfilter.CheckHost() doesn't support host="hostname." (with a trailing dot) anymore
2019-08-08 12:11:24 +03:00
Simon Zolin
15d07a40eb
* refactor
2019-08-05 14:12:22 +03:00
Simon Zolin
e81a9c7d56
+ dnsfilter: use global and per-client BlockedServices array
2019-08-05 14:12:22 +03:00
Simon Zolin
d9265aa9a8
fix tests
2019-07-23 20:01:50 +03:00
Simon Zolin
a79643f23e
+ dnsfilter-test: override global safe-browsing setting with a per-client setting
2019-07-15 14:03:22 +03:00
Simon Zolin
0a1d7fd707
- fix tests
2019-07-09 11:35:39 +03:00
Simon Zolin
1c9abd6107
Merge: + dhcpd, clients, dnsfilter: add more tests
...
#788
* commit '25da23497a19118a22b97d64749fa70337544116':
+ dnsfilter: more tests
+ dhcpd, clients: add more tests
2019-07-01 19:26:27 +03:00
Simon Zolin
64f66cfb5d
* dnsfilter: fix tests: pass config object to NewForTest()
2019-07-01 19:24:52 +03:00
Simon Zolin
25da23497a
+ dnsfilter: more tests
2019-06-26 18:13:09 +03:00
Simon Zolin
3baa6919dc
- fix tests and linter issues
2019-05-31 12:27:13 +03:00
Simon Zolin
8bf76c331d
+ dnsfilter: use callback function for applying per-client settings
2019-05-28 18:44:27 +03:00
Simon Zolin
e2579c72bd
* dnsfilter: fix tests
2019-05-24 18:08:08 +03:00
Simon Zolin
5ec747b30b
* dnsfilter: adapt tests to new interface
2019-05-17 18:22:57 +03:00
Simon Zolin
5cb6d97cd7
* use new logger - AdguardTeam/golibs/log
2019-02-27 15:02:11 +03:00
Andrey Meshkov
c71d6ed433
Fix race in safesearch tests
2019-02-25 18:56:51 +03:00
Aleksey Dmitrevskiy
d0f4f22e0d
Add safesearch test for dnsforward
2019-02-25 14:58:54 +03:00
Aleksey Dmitrevskiy
623c3bba09
Fix #576 - Fix safesearch
2019-02-22 16:34:36 +03:00
Andrey Meshkov
ec6b1f7c42
Added golangci-lint configuration and prepared for the integrattion
2019-01-25 20:13:57 +03:00
Andrey Meshkov
d078851246
gometalinter
2019-01-25 20:13:57 +03:00
Eugene Bujak
368e2d1ebd
move log wrapper library outside into hmage/golibs/log
2018-12-29 19:12:45 +03:00
Eugene Bujak
d8802a9709
Use new log wrapper and add more functions to it.
2018-12-29 17:37:18 +03:00
Eugene Bujak
c82a5ac0cb
dnsfilter -- fix broken tests
2018-12-06 16:54:48 +03:00
Andrey Meshkov
c500345d16
Fix #460
2018-11-26 14:09:43 +03:00
Andrey Meshkov
abb51ddb8a
Add ErrAlreadyExists
2018-10-29 16:17:18 +03:00
Andrey Meshkov
2b2a797cf7
Moved hosts-syntax matching to DnsFilter
2018-10-29 15:46:58 +03:00
Eugene Bujak
cb97a254a5
dnsfilter -- avoid using regexps when simple suffix match is enough.
...
This covers 96.98% of all adguard dns rules.
2018-10-04 13:19:43 +03:00
Eugene Bujak
3aac7e7bc9
Add a test to demonstrate huge memory usage due from having too many regexps
2018-10-04 02:06:23 +03:00
Eugene Bujak
c2aa39efe5
Merge pull request #23 in DNS/adguard-dns from gometalinter to master
...
* commit '076c9de68e73bbddc63cf6f7212818c91f3e5c08':
Fix many lint warnings found by gometalinter
2018-09-17 11:26:17 +03:00
Eugene Bujak
dcbe3dd405
dnsfilter -- compare full hashes when parsing parental lookup result.
...
Closes #337 .
2018-09-17 01:42:01 +03:00
Eugene Bujak
076c9de68e
Fix many lint warnings found by gometalinter
2018-09-14 18:40:05 +03:00
Eugene Bujak
1102963fa0
dnsfilter -- Update tests to check for expected filter/nofilter reason as well.
2018-09-06 02:06:40 +03:00
Eugene Bujak
ed4077a969
Initial commit
2018-08-30 17:25:33 +03:00