Andrey Meshkov
7b2cc51e35
fix function comment
2020-06-23 18:04:26 +03:00
Andrey Meshkov
b43223d302
*(home): do not require root privileges on the first run
...
Instead of requiring root privileges, we now check if AdGuard Home can
bind to privileged ports. If it cannot, we suggest either running it
with root privileges or grant CAP_NET_BIND_SERVICE capability. Please
note, that on Windows we still require root access.
Closes : #1699
2020-06-23 18:02:28 +03:00
Simon Zolin
cf087fb8ff
- service: "stop" didn't work correctly
...
Close #1785
Squashed commit of the following:
commit 40eba3049ac339b4e2537b2fd598c2fb1c6e8cd0
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Jun 10 19:43:14 2020 +0300
- service: "stop" didn't work correctly
2020-06-11 10:24:43 +03:00
Simon Zolin
0d343abec0
* minor
2020-06-02 19:20:31 +03:00
DannyHinshaw
e23b79dda0
+ config: Added in lumberjack to handle rolling logs. Added more config properties around new log feature.
...
Reset logger max file size config. Fix #1573 .
Remove verbose from default config.
2020-06-02 19:18:37 +03:00
Andrey Meshkov
2fca419c7f
*(home): fix TLS module initialization
...
Continue to work even when TLS cert-key pair is invalid
Closes: https://github.com/AdguardTeam/AdGuardHome/issues/1677
2020-05-16 02:02:50 +03:00
Andrey Meshkov
0311e53ebb
*: added comment
2020-05-08 17:43:49 +03:00
Simon Zolin
14ffd1a3f5
Merge: - blocked-services: settings were reset on restart
...
Close #1624
Squashed commit of the following:
commit eecc91ca1f9d062c27702a9c07da74da673bef05
Merge: ec53dbeb 26f78dcc
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Apr 27 13:15:58 2020 +0300
Merge remote-tracking branch 'origin/master' into fix-blocked-svcs
commit ec53dbebdc2fbd2ff94f939d2bd8fb07b9dd1bc8
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Apr 27 12:58:50 2020 +0300
minor
commit 1e3c20ed02151965ebaca55ac4f25a951a772062
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Apr 27 12:53:37 2020 +0300
- blocked-services: settings were reset on restart
broken by:
0789e4b20d
* refactor: move blocked-services functions to dnsfilter
2020-04-27 13:21:16 +03:00
Simon Zolin
9671050e5b
+ config: add "debug_pprof" setting
...
Squashed commit of the following:
commit 96d185cf4acc55b21a00d10072e0a641ef7655b8
Merge: 3b75a8cb 9b7c1181
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Apr 22 15:57:50 2020 +0300
Merge remote-tracking branch 'origin/master' into add-pprof
commit 3b75a8cbec5d72be8865a56bfd7ebb8b0673c3bc
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Apr 22 13:52:36 2020 +0300
* use localhost:6060 for pprof
commit f66f2fbd7409b98cd9f7d297c268fca998f85e3b
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Apr 22 12:46:25 2020 +0300
minor
commit 6e38712fb5542f612675858eb957efdefc38f9b0
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Apr 22 11:59:39 2020 +0300
use separate HTTP server for pprof
commit 988d95b5fad22f536bf9204b6b96f3697cf9a589
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Apr 21 17:04:04 2020 +0300
minor
commit 90ee6e9753be2af49467687cdf71c35b3943b78b
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Apr 21 16:57:38 2020 +0300
* use modified version of pprof
commit 413002220fe0717950539a8b7e6b0f31cef31bb8
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Apr 20 16:35:21 2020 +0300
minor
commit d4655d3849de1d9fe97efdb7f18fc21d5ac19eda
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Apr 20 15:57:57 2020 +0300
+ config: add "enable_pprof" setting
2020-04-22 16:00:26 +03:00
Andrey Meshkov
1a34b96d03
*: added more logging
2020-04-15 15:17:57 +03:00
Simon Zolin
6690441240
- install: fix crash when trying to use uninitialized TLS module
2020-04-07 19:24:29 +03:00
Simon Zolin
06b3378fd7
Merge: + DNS, Web: use only secure TLSv1.2 ciphers
...
Close #1384
Squashed commit of the following:
commit cd90abcce573a8e930446ba153565e553e6b81d5
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 20 19:17:53 2020 +0300
minor
commit a1914c5f41425e82cdedc9716bce84470afab65b
Merge: 72c53673 c8285c41
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 20 19:17:21 2020 +0300
Merge remote-tracking branch 'origin/master' into 1384-tls12-ciphers
commit 72c536737e0502bb397562ade47aedb9f2ae4494
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Mar 4 18:16:24 2020 +0300
+ DNS, Web: use only secure TLSv1.2 ciphers
2020-03-23 10:23:34 +03:00
Simon Zolin
63923fa882
Merge: + DNS: use rules from /etc/hosts
...
- fix filtering logic: don't do DNS response check for Rewrite rules
Close #1478
Squashed commit of the following:
commit 1206b94881289ff664b7c8998ea97c1455da1ff8
Merge: c462577a 5fe98474
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 20 15:00:25 2020 +0300
Merge remote-tracking branch 'origin/master' into 1478-auto-records
commit c462577ad84754f5b3ea4cd58339838af817fe36
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 20 14:33:17 2020 +0300
minor
commit 7e824ba5f432648a976bc4b8076a645ba875ef70
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 20 14:29:54 2020 +0300
more tests
commit a22b62136c5cfd84cd0450897aef9e7d2e20585a
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 20 14:09:52 2020 +0300
rename, move
commit 9e5ed49ad3c27c57d540edf18b78d29e56afb067
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 19 15:33:27 2020 +0300
fix logic - don't do DNS response check for Rewrite rules
commit 6cfabc0348a41883b8bba834626a7e8760b76bf2
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 19 11:35:07 2020 +0300
minor
commit 4540aed9327566078e5087d43c30f4e8bffab7b9
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 19 11:03:24 2020 +0300
fix
commit 9ddddf7bded812da48613cc07084e360c15ddd0e
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 19 10:49:13 2020 +0300
fix
commit c5f8ef745b6f2a768be8a2ab23ad80b01b0aa54f
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 19 10:37:26 2020 +0300
fix
commit f4be00947bf0528c9a7cd4f09c4090db444c4694
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Mar 16 20:13:00 2020 +0300
+ auto DNS records from /etc/hosts
2020-03-20 15:05:43 +03:00
Simon Zolin
db30f27c8f
* TLS is now a separate module (logically)
2020-03-17 17:11:24 +03:00
Simon Zolin
8e4bc29103
* move HTTP server code
2020-03-17 17:11:24 +03:00
Simon Zolin
0789e4b20d
* refactor: move blocked-services functions to dnsfilter
2020-03-17 17:11:22 +03:00
Simon Zolin
e8129f15c7
* refactor
...
1. Auth module was initialized inside dns.go - now it's moved to initWeb()
2. stopHTTPServer() wasn't called on server stop - now we do that
3. Don't use postInstall() HTTP filter where it's not necessary.
Now we register handlers after installation is complete.
2020-03-17 15:23:29 +03:00
Simon Zolin
c77907694d
+ service: support "-s reload" command
2020-03-17 15:21:10 +03:00
Simon Zolin
fa2f793ac7
+ clients: re-read auto-clients from /etc/hosts when SIGHUP is received
2020-03-17 15:21:10 +03:00
Simon Zolin
646725efb7
Merge: * DNS filters: optimize filter update
...
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <s.zolin@adguard.com>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure
2020-03-17 15:00:40 +03:00
Simon Zolin
1000aef1d2
+ DNS, Web: Entware: use special directory with the system root certificates
...
+ use custom RootsCA for HTTPS client, for server cert verify
2020-03-16 15:15:38 +03:00
Simon Zolin
88853b76d9
Merge: + config: new setting 'http_proxy'
...
Close #458
* commit '2e054b673264bdb563abb6478979d00e76e52c8d':
+ config: new setting 'http_proxy'
2020-03-16 14:58:21 +03:00
Simon Zolin
480c6ac753
Merge: - dhcp: crash on error on startup
...
Squashed commit of the following:
commit 81908b636ec91a562b3ff8634b77c71dc3f009e4
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Mar 13 17:25:36 2020 +0300
- dhcp: crash on error on startup
2020-03-13 17:30:09 +03:00
Simon Zolin
2e054b6732
+ config: new setting 'http_proxy'
2020-03-12 15:11:08 +03:00
Andrey Meshkov
7a3eda02ce
Fix #1069 install: check static ip
...
Squashed commit of the following:
commit 57466233cb
Merge: 2df5f281
867bf545
Author: Andrey Meshkov <am@adguard.com>
Date: Thu Feb 13 18:39:15 2020 +0300
Merge branch 'master' into 1069-install-static-ip
commit 2df5f281c4
Author: Andrey Meshkov <am@adguard.com>
Date: Thu Feb 13 18:35:54 2020 +0300
*: lang fix
commit b4649a6b27
Merge: c2785253
f61d5f0f
Author: Andrey Meshkov <am@adguard.com>
Date: Thu Feb 13 16:47:30 2020 +0300
*(home): fixed issues with setting static IP on Mac
commit c27852537d
Author: Andrey Meshkov <am@adguard.com>
Date: Thu Feb 13 14:14:30 2020 +0300
+(dhcpd): added static IP for MacOS
commit f61d5f0f85
Author: Ildar Kamalov <i.kamalov@adguard.com>
Date: Thu Feb 13 14:13:35 2020 +0300
+ client: show confirm before setting static IP
commit 7afa16fbe7
Author: Ildar Kamalov <i.kamalov@adguard.com>
Date: Thu Feb 13 13:51:52 2020 +0300
- client: fix text
commit 019bff0851
Author: Ildar Kamalov <i.kamalov@adguard.com>
Date: Thu Feb 13 13:49:16 2020 +0300
- client: pass all params to the check_config request
commit 194bed72f5
Author: Andrey Meshkov <am@adguard.com>
Date: Wed Feb 12 17:12:16 2020 +0300
*: fix home_test
commit 9359f6b55f
Merge: ae299058
c5ca2a77
Author: Andrey Meshkov <am@adguard.com>
Date: Wed Feb 12 15:54:54 2020 +0300
Merge with master
commit ae2990582d
Author: Andrey Meshkov <am@adguard.com>
Date: Wed Feb 12 15:53:36 2020 +0300
*(global): refactoring - moved runtime properties to Context
commit d8d48c5386
Author: Andrey Meshkov <am@adguard.com>
Date: Wed Feb 12 15:04:25 2020 +0300
*(dhcpd): refactoring, use dhcpd/network_utils where possible
commit 8d039c572f
Author: Ildar Kamalov <i.kamalov@adguard.com>
Date: Fri Feb 7 18:37:39 2020 +0300
- client: fix button position
commit 26c47e59dd
Author: Ildar Kamalov <i.kamalov@adguard.com>
Date: Fri Feb 7 18:08:56 2020 +0300
- client: fix static ip description
commit cb12babc46
Author: Andrey Meshkov <am@adguard.com>
Date: Fri Feb 7 17:08:39 2020 +0300
*: lower log level for some commands
commit d9001ff848
Author: Andrey Meshkov <am@adguard.com>
Date: Fri Feb 7 16:17:59 2020 +0300
*(documentation): updated openapi
commit 1d213d53c8
Merge: 8406d7d2
80861860
Author: Andrey Meshkov <am@adguard.com>
Date: Fri Feb 7 15:16:46 2020 +0300
*: merge with master
commit 8406d7d288
Author: Ildar Kamalov <i.kamalov@adguard.com>
Date: Fri Jan 31 16:52:22 2020 +0300
- client: fix locales
commit fb476b0117
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Jan 31 13:29:03 2020 +0300
linter
commit 84b5708e71
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Jan 31 13:27:53 2020 +0300
linter
commit 143a86a28a
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Jan 31 13:26:47 2020 +0300
linter
... and 7 more commits
2020-02-13 18:42:07 +03:00
Andrey Meshkov
c5ca2a779c
*: fixed some linter warnings
2020-02-11 12:59:21 +03:00
Andrey Meshkov
808618602c
*(global): fix ARM build auto-update
...
✅ Closes: https://github.com/AdguardTeam/AdGuardHome/issues/1391
2020-02-06 20:55:37 +03:00
Simon Zolin
5773df6f6c
Merge: + --version: Show the version and exit
...
Close #1285
Squashed commit of the following:
commit fdc616f38651f9fcc16442003bd15adb88e2c2b1
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Jan 15 18:46:00 2020 +0300
minor
commit 6f5a22c86e5fe76c3959343a8077d3997ff0707d
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 30 19:19:30 2019 +0300
+ --version: Show the version and exit
2020-01-16 10:42:03 +03:00
Simon Zolin
eb6c4eb132
+ release.sh: add armv5 build
...
Close #1239
Squashed commit of the following:
commit 707e2f8e265e294c7b1328c375648f799a5ae293
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Jan 10 16:32:52 2020 +0300
leave "AdGuardHome_linux_arm" by default
commit cca01fd03200e70d6ee2201540570382f2b7fdf4
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Jan 10 14:53:37 2020 +0300
fix auto-update; update readme
commit f393a4f511861ef1998c68775bb8f234c5ce1838
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Jan 10 13:00:37 2020 +0300
+ release.sh: add armv5 build; rename armv6 build
commit 73f2d20ba6b0a94a9929882fe15175ba80b528d7
Author: Simon Zolin <s.zolin@adguard.com>
Date: Fri Jan 10 12:59:55 2020 +0300
* release.sh: fix indentation
2020-01-15 18:58:12 +03:00
Andrey Meshkov
abbf8fb87b
-(global): fixing the installation flow on windows
...
There could be a bug caused by the lack of SO_REUSEPORT
2019-12-23 14:57:10 +03:00
Simon Zolin
c9ccc53282
Merge: * set BlockingMode: "null_ip" by default; minor improvements
...
Squashed commit of the following:
commit 653544b98dc4d1b9a74e1509d0e6104b71bcdcb3
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Dec 11 17:34:41 2019 +0300
* DNS reconfigure: protect against delayed socket fd close
commit 9e650f37dee7f771bf1d9d714c35f0a81788aa16
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Dec 11 15:28:33 2019 +0300
- fix race on startup
commit 878fdb8fc4ebbc6fab683a65f5e4298e64c2073e
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Dec 11 15:11:21 2019 +0300
* travis: don't run tests
commit 1c4ab60684ee22d55e6d2a3350c0f24d9844255c
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Dec 11 14:56:28 2019 +0300
* travis: 'release.sh' and then run tests
commit e1f644b8d9a1f3b46990cdfb1b75fd81b3a49d33
Author: Simon Zolin <s.zolin@adguard.com>
Date: Wed Dec 11 14:52:59 2019 +0300
* set BlockingMode: "null_ip" by default
2019-12-11 17:54:34 +03:00
Simon Zolin
0a66913b4d
Merge: * use upstream servers directly for the internal DNS resolver
...
Close #1212
* Server.Start(config *ServerConfig) -> Start()
+ Server.Prepare(config *ServerConfig)
+ Server.Resolve(host string)
+ Server.Exchange()
* rDNS: use internal DNS resolver
- clients: fix race in WriteDiskConfig()
- fix race: move 'clients' object from 'configuration' to 'HomeContext'
Go race detector didn't like our 'clients' object in 'configuration'.
+ add AGH startup test
. Create a configuration file
. Start AGH instance
. Check Web server
. Check DNS server
. Wait until the filters are downloaded
. Stop and cleanup
* move module objects from config.* to Context.*
* don't call log.SetLevel() if not necessary
This helps to avoid Go race detector's warning
* ci.sh: 'make' and then run tests
Squashed commit of the following:
commit 86500c7f749307f37af4cc8c2a1066f679d0cfad
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 18:08:53 2019 +0300
minor
commit 6e6abb9dca3cd250c458bec23aa30d2250a9eb40
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 18:08:31 2019 +0300
* ci.sh: 'make' and then run tests
commit 114192eefea6800e565ba9ab238202c006516c27
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 17:50:04 2019 +0300
fix
commit d426deea7f02cdfd4c7217a38c59e51251956a0f
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 17:46:33 2019 +0300
tests
commit 7b350edf03027895b4e43dee908d0155a9b0ac9b
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:56:12 2019 +0300
fix test
commit 2f5f116873bbbfdd4bb7f82a596f9e1f5c2bcfd8
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:48:56 2019 +0300
fix tests
commit 3fbdc77f9c34726e2295185279444983652d559e
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:45:00 2019 +0300
linter
commit 9da0b6965a2b6863bcd552fa83a4de2866600bb8
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:33:23 2019 +0300
* config.dnsctx.whois -> Context.whois
commit c71ebdbdf6efd88c877b2f243c69d3bc00a997d7
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:31:08 2019 +0300
* don't call log.SetLevel() if not necessary
This helps to avoid Go race detector's warning
commit 0f250220133cefdcb0843a50000cb932802b8324
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 15:28:19 2019 +0300
* rdns: refactor
commit c460d8c9414940dac852e390b6c1b4d4fb38dff9
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 14:08:08 2019 +0300
Revert: * stats: serialize access to 'limit'
Use 'conf *Config' and update it atomically, as in querylog module.
(Note: Race detector still doesn't like it)
commit 488bcb884971276de0d5629384b29e22c59ee7e6
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 13:50:23 2019 +0300
* config.dnsFilter -> Context.dnsFilter
commit 86c0a6827a450414b50acec7ebfc5220d13b81e4
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 13:45:05 2019 +0300
* config.dnsServer -> Context.dnsServer
commit ee35ef095ccaabc89e3de0ef52c9b5ed56b36873
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 13:42:10 2019 +0300
* config.dhcpServer -> Context.dhcpServer
commit 1537001cd211099d5fad01696c0b806ae5d257b1
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 13:39:45 2019 +0300
* config.queryLog -> Context.queryLog
commit e5955fe4ff1ef6f41763461b37b502ea25a3d04c
Author: Simon Zolin <s.zolin@adguard.com>
Date: Tue Dec 10 13:03:18 2019 +0300
* config.httpsServer -> Context.httpsServer
commit 6153c10a9ac173e159d1f05e0db1512579b9203c
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 9 20:12:24 2019 +0300
* config.httpServer -> Context.httpServer
commit abd021fb94039015cd45c97614e8b78d4694f956
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 9 20:08:05 2019 +0300
* stats: serialize access to 'limit'
commit 38c2decfd87c712100edcabe62a6d4518719cb53
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 9 19:57:04 2019 +0300
* config.stats -> Context.stats
commit 6caf8965ad44db9dce9a7a5103aa8fa305ad9a06
Author: Simon Zolin <s.zolin@adguard.com>
Date: Mon Dec 9 19:45:23 2019 +0300
fix Restart()
... and 6 more commits
2019-12-11 12:38:58 +03:00
Simon Zolin
477a4bbf54
* dhcp: move HTTP handlers to dhcpd/
2019-11-29 17:11:07 +03:00
Simon Zolin
149fcc0f2d
* dhcp,clients: DHCP server module is passed to Clients module during initialization.
2019-11-29 17:11:07 +03:00
Simon Zolin
fd26af2677
* minor
2019-11-29 16:53:21 +03:00
Simon Zolin
71ce0c6da9
* clients: multiple IP, CIDR, MAC addresses
...
+ /clients/find
* clients: move code for config read/write
* clients: move HTTP handlers
2019-11-29 16:52:32 +03:00
Simon Zolin
dc2c68b1e4
* use Go v1.13
2019-11-25 14:10:28 +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
Andrey Meshkov
33ae359cc1
*: change initDNSServer method, add getDataDir
2019-10-02 16:53:23 +03:00
Simon Zolin
adb422fedf
filtering: refactor; change API; add "filters_update_interval" setting
...
+ config: "filters_update_interval"
* add /control/filtering_info
* remove /control/filtering/enable
* remove /control/filtering/disable
* add /control/filtering_config
* remove /control/filtering/status
* add /control/filtering/set_url
* remove /control/filtering/enable_url
* remove /control/filtering/disable_url
2019-09-12 18:38:13 +03:00
Simon Zolin
24bb708b21
+ config: add certificate_path, private_key_path
...
* POST /control/tls/configure: support certificate_path and private_key_path
2019-08-30 19:18:14 +03:00
Andrey Meshkov
c82e93cfc7
-(dnsforward): fixed sigsegv when protection is disabled
...
Also, fixed all golint issues
✅ Closes : #941
2019-08-20 00:55:32 +03:00
Simon Zolin
e81a9c7d56
+ dnsfilter: use global and per-client BlockedServices array
2019-08-05 14:12:22 +03:00
Simon Zolin
b8444ff46a
* minor
2019-07-19 12:18:16 +03:00
Simon Zolin
5e309a7b3a
* move "httpServer" to "config"
2019-07-19 12:18:16 +03:00
Simon Zolin
2780ace63e
* move "httpsServer" to "config"
2019-07-19 12:18:16 +03:00
Simon Zolin
f79008d9d0
* move "pidFileName" to "config"
2019-07-19 12:18:16 +03:00
Simon Zolin
c426ee0108
* move "client", "transport" to "config"
2019-07-19 12:18:16 +03:00
Simon Zolin
d51f43e27a
* clients: move container object to "config"
...
Now the functions use parameter, not a global object.
2019-07-17 19:29:45 +03:00
Simon Zolin
131aa4c93c
- service stop: fix race
...
Service Stop handler sends SIGINT to the main thread,
which begins the stops the app.
2019-07-02 12:56:23 +03:00