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
d659e7ee08
* rDNS: make log messages' level = debug
2019-08-08 12:11:24 +03:00
Simon Zolin
4f08f96607
* rDNS: refactor: move code to a separate file
2019-08-08 12:10:50 +03:00
Simon Zolin
77592c6382
Merge: * use golibs v0.1.4
...
Close #893
* commit '272115724df8748afc1954538673786cd56f9365':
* use golibs v0.1.4
2019-08-07 15:12:44 +03:00
Simon Zolin
272115724d
* use golibs v0.1.4
2019-08-06 18:55:56 +03:00
Simon Zolin
a59b6b3054
Merge: block access to specific services
...
Close #819
* commit 'e7001c3bc4a7e1ec53d810cafbc90d7f2a624af5':
* config upgrade: sequential processing
* config: upgrade schema version: 3 -> 4
+ client: add prefix to the service icons
+ client: handle blocked services
+ openapi: add /blocked_services/*
+ openapi: clients: add "blocked_services" field
* refactor
+ /control/blocked_services/* API
+ dnsfilter: use global and per-client BlockedServices array
+ clients: add BlockedServices field
+ config: store/load "blocked_services" per-client setting
+ doc: add "Services Filter" section
2019-08-05 14:13:54 +03:00
Simon Zolin
e7001c3bc4
* config upgrade: sequential processing
2019-08-05 14:12:22 +03:00
Simon Zolin
1b95a85651
* config: upgrade schema version: 3 -> 4
2019-08-05 14:12:22 +03:00
Ildar Kamalov
0c46a70d9a
+ client: add prefix to the service icons
2019-08-05 14:12:22 +03:00
Ildar Kamalov
92cebd5b31
+ client: handle blocked services
2019-08-05 14:12:22 +03:00
Simon Zolin
3c684d1f85
+ openapi: add /blocked_services/*
2019-08-05 14:12:22 +03:00
Simon Zolin
87b379b140
+ openapi: clients: add "blocked_services" field
2019-08-05 14:12:22 +03:00
Simon Zolin
15d07a40eb
* refactor
2019-08-05 14:12:22 +03:00
Simon Zolin
dc2d8cf075
+ /control/blocked_services/* API
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
04a477c14a
+ clients: add BlockedServices field
2019-08-05 14:12:22 +03:00
Simon Zolin
8307a5a494
+ config: store/load "blocked_services" per-client setting
2019-08-05 14:12:22 +03:00
Simon Zolin
01f5a13dd2
+ doc: add "Services Filter" section
2019-08-05 14:12:22 +03:00
Andrey Meshkov
fdfc8d7683
fix typo2
2019-08-02 14:55:58 +03:00
Andrey Meshkov
b17cbcb38f
fix typo
2019-08-02 14:55:00 +03:00
Andrey Meshkov
9389b087be
Merge pull request #290 in DNS/adguard-home from feature/github_issue_template to master
...
* commit '0550a9a460aac7e5cd449513fed0567e558d2891':
*(documentation): Github issue template
2019-08-02 14:48:25 +03:00
Andrey Meshkov
0550a9a460
*(documentation): Github issue template
2019-08-02 13:33:36 +03:00
Simon Zolin
4ae8c799ee
Merge: + DNS: Add Rewrites section
...
Close #818
* commit 'e95aae5744ffd1de0809c95a8df50ea3f5f1af28':
+ client: handle DNS rewrites
+ openapi: add /rewrite/* methods
+ dnsforward: use Rewrites table
+ control: add /rewrite/* handlers
+ doc: add Rewrites section
* dnsfilter: refactor: a simple approach to convert Reason to string
2019-07-31 18:55:01 +03:00
Ildar Kamalov
e95aae5744
+ client: handle DNS rewrites
2019-07-31 14:29:37 +03:00
Ildar Kamalov
3cca61d599
Merge: + translations: add twosky integration
...
* commit '3b0f2e5563bfa3411b258b1b9c0b9d74f5598514':
+ translations: add twosky integration
2019-07-31 14:02:01 +03:00
Ildar Kamalov
3b0f2e5563
+ translations: add twosky integration
2019-07-31 13:51:58 +03:00
Simon Zolin
70b8cf6ec8
+ openapi: add /rewrite/* methods
2019-07-29 14:49:14 +03:00
Simon Zolin
1bb6638db7
+ dnsforward: use Rewrites table
2019-07-29 11:48:24 +03:00
Simon Zolin
9857024c5d
+ control: add /rewrite/* handlers
2019-07-29 11:48:24 +03:00
Simon Zolin
0c2459b51b
+ doc: add Rewrites section
2019-07-29 11:37:47 +03:00
Simon Zolin
b66e370ffc
* dnsfilter: refactor: a simple approach to convert Reason to string
2019-07-29 11:37:10 +03:00
Simon Zolin
a9fbb93f0f
Merge: + Add "parental_block_host" and "safebrowsing_block_host" settings
...
#454
* commit 'fdf7ee2c08d4177d78fcdc20571bc7d2b61320ae':
* refactor: don't set new configuration while running DNS server
* refactor
* dnsforward: parental control server can be an IP address, not just host name
+ dnsforward, config: add "parental_block_host" and "safebrowsing_block_host" settings
2019-07-24 19:35:46 +03:00
Andrey Meshkov
a742181956
Merge: +: git-cz config file
...
* commit '873108bf081c98eeb22fe00befd81f198aca7879':
+: git-cz config file
2019-07-24 17:25:53 +03:00
Andrey Meshkov
873108bf08
+: git-cz config file
...
Added a git-cz config file because otherwise I cannot write proper
commit messages as I forget our rules all the time.
2019-07-24 17:26:21 +03:00
Andrey Meshkov
e9647e2962
Merge: refactor: 💡 optimizing GC
...
* commit '479675b6ccffbd9505a1edced40472438ea6a737':
refactor: 💡 optimizing GC
2019-07-24 17:06:04 +03:00
Andrey Meshkov
e09ec5d38e
Merge: * dnsfilter: use fastcache instead of gcache
...
* commit 'd9265aa9a8c21d97206b0e43a03b448f2c33a510':
fix tests
* dnsfilter: use fastcache instead of gcache
+ config: add cache size settings
2019-07-24 17:04:24 +03:00
Andrey Meshkov
479675b6cc
refactor: 💡 optimizing GC
...
Setting debug.SetGCPercent makes golang free memory faster. This greatly
improves overall RSS usage. Otherwise, golang prefers not to free memory
at all:)
2019-07-24 17:00:05 +03:00
Simon Zolin
d9265aa9a8
fix tests
2019-07-23 20:01:50 +03:00
Simon Zolin
6f51df7d2e
* dnsfilter: use fastcache instead of gcache
2019-07-23 17:14:13 +03:00
Simon Zolin
81303b5db7
+ config: add cache size settings
2019-07-23 15:57:44 +03:00
Simon Zolin
fdf7ee2c08
* refactor: don't set new configuration while running DNS server
2019-07-22 12:52:27 +03:00
Simon Zolin
5a3de2a276
* refactor
2019-07-22 12:33:58 +03:00
Simon Zolin
4a05ab0057
* dnsforward: parental control server can be an IP address, not just host name
2019-07-22 12:33:45 +03:00
Simon Zolin
4134a8c30e
+ dnsforward, config: add "parental_block_host" and "safebrowsing_block_host" settings
2019-07-22 12:16:30 +03:00
Simon Zolin
c2dacd32d1
Merge: * use urlfilter v0.4.1
...
Close #840
* commit 'bb00a632382823d8c0a0d9f307788711ea50cb5f':
* use urlfilter v0.4.1
2019-07-19 15:26:52 +03:00
Simon Zolin
bb00a63238
* use urlfilter v0.4.1
2019-07-19 15:20:42 +03:00
Simon Zolin
bd5162ada3
Merge: Refactoring: move global variables; move initialization of periodic tasks
...
Close #583
* commit 'b8444ff46aff5e45194c6cb61fdf4d3e7aa798fa':
* minor
* dnsforward: move initialization of periodic tasks to NewServer()
* move "dnsctx" to "config"
* move "dnsServer" to "config"
* move "dhcpServer" to "config"
* move "httpServer" to "config"
* move "httpsServer" to "config"
* move "pidFileName" to "config"
* move "versionCheckJSON" to "config"
* move "client", "transport" to "config"
* move "controlLock" mutex to "config"
* clients: move container object to "config"
2019-07-19 15:18:51 +03:00
Simon Zolin
b8444ff46a
* minor
2019-07-19 12:18:16 +03:00
Simon Zolin
2bbd262968
* dnsforward: move initialization of periodic tasks to NewServer()
2019-07-19 12:18:16 +03:00
Simon Zolin
6701e9ce06
* move "dnsctx" to "config"
2019-07-19 12:18:16 +03:00