Dimitri Herzog
a4b89537db
update golangci-lint ( #510 )
...
* update golangci-lint
* enable gomnd linter
* enable asciicheck linter
* enable bidichk linter
* enable durationcheck linter
* enable errchkjson linter
* enable errorlint linter
* enable exhaustive linter
* enable gomoddirectives linter
* enable gomodguard guard
* enable grouper linter
* enable grouper and ifshort linters
* enable importas linter
* enable makezero linter
* enable nestif linter
* enable nilerr linter
* enable nilnil linter
* enable nlreturn linter
* enable nolintlint linter
* enable predeclared linter
* enable sqlclosecheck linter
* enable tenv linter
* enable wastedassign linter
2022-05-10 09:09:50 +02:00
Dimitri Herzog
41febafd41
chore: test cleanup and refactoring ( #509 )
...
test: added additional assertions, introduced channels for bus event tests, refactoring, eliminating race conditions in tests, enable race check in tests
2022-05-06 22:34:08 +02:00
ThinkChaos
102d31e0f7
Change swagger URL to match blocky's version ( #498 )
2022-04-22 22:27:00 +02:00
ThinkChaos
62c7816ab3
Support of DoH/DoT as bootstrap DNS ( #485 )
2022-04-22 22:12:35 +02:00
Dimitri Herzog
28789ee7fe
filtering of queries ( #450 ) ( #474 )
2022-04-01 08:58:09 +02:00
ThinkChaos
f8b6e59ef4
Add rewrite support to custom DNS ( #449 )
...
This commit extracts rewriting logic from `ConditionalUpstreamResolver`
into the new `RewriterResolver`, and uses that to enable rewriting for
the `CustomDNSResolver`.
`RewriterResolver` wraps a resolver and applies the rewrite to the
request that is forwarded to the inner resolver.
It also introduces a new optional interface: `NamedResolver`.
This allows a `Resolver` to choose what its user friendly name is,
instead of always being its type name.
2022-03-17 22:30:21 +01:00
ThinkChaos
27c8cbf2b7
Update to gingko v2 ( #447 )
2022-03-03 11:27:27 +01:00
Kwitsch
ee451f8b36
Sync blocking enable/disable over redis ( #377 ) ( #403 )
...
Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-01-19 22:03:41 +01:00
FileGo
b43c7aa2cb
Enable resolving hosts file ( #362 )
...
fixes #362
Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2022-01-04 15:40:09 +01:00
Dimitri Herzog
7ea5ba4cac
updated github.com/go-chi/chi
2021-12-24 23:04:47 +01:00
Dimitri Herzog
d7bf373b52
Replace all sleeps in tests with "eventually" from gomega ( #379 )
2021-12-22 22:21:04 +01:00
Dimitri Herzog
d6bb02f26f
fix lint issues
2021-12-21 22:02:15 +01:00
Kwitsch
d3611fb444
FR: DNS cache sync between multiple blocky instances ( #344 ) ( #365 )
2021-12-21 17:06:16 +01:00
Dimitri Herzog
61ca25c64c
sanitize log output
2021-12-20 22:37:32 +01:00
ThinkChaos
69dc38308c
Allow configuring multiple listen addresses for each port ( #372 )
2021-12-20 22:13:07 +01:00
ThinkChaos
cbcd09c898
Allow configuring custom DNS TTL ( #370 )
2021-12-16 21:38:01 +01:00
ThinkChaos
25ad3a9186
Make go:build compatible with go 1.16 ( #361 )
2021-12-11 22:33:36 +01:00
Dimitri Herzog
9b9596970c
Improved configuration output (duration format, etc.)
2021-11-07 21:35:16 +01:00
Dimitri Herzog
f823db19c7
Refactoring default parameters in configuration
2021-11-05 23:00:54 +01:00
Dimitri Herzog
40e749abb5
DoH endpoints should also accept trailing slash
2021-10-21 22:38:58 +02:00
Dimitri Herzog
a90fb5d1c2
Extract client name from the URL (DoH and DoT) ( #317 )
...
* Extract client name from the URL (DoH and DoT) #304
* improved tests
2021-10-13 22:47:14 +02:00
Dimitri Herzog
cd767960a5
introduced go-multierror to handle multiple errors
2021-10-13 22:45:32 +02:00
Dimitri Herzog
57036aa088
fixed golangci-lint issues
2021-10-13 21:40:18 +02:00
Kwitsch
e5b44f49ca
application startup should fail if initial download of a single list failed ( #310 ) ( #313 )
...
application startup should fail if initial download of a single list failed
2021-10-13 21:30:14 +02:00
Dimitri Herzog
c22292eb19
DoT (DNS-over-TLS) server ( #303 )
2021-10-04 21:56:18 +02:00
Dimitri Herzog
43bd5684a1
Remove stats resolver ( #266 )
2021-09-13 22:32:34 +02:00
Dimitri Herzog
e6ca89607a
write database entries async in bulk
2021-09-13 22:06:21 +02:00
Dimitri Herzog
ee8f041938
refactoring: generate enums
2021-09-11 21:31:03 +02:00
Dimitri Herzog
63735546bb
moving model types to the separate package
2021-09-08 21:38:34 +02:00
Gonzalo Arreche
c866b71860
Fix go lint issues
2021-09-07 08:34:00 +02:00
Dimitri Herzog
919512959b
use full-qualified name as module
2021-08-27 13:41:36 +02:00
Dimitri Herzog
301c8e4374
#236 : Enable wire format compression to support Android 9 DoH
2021-07-27 22:15:47 +02:00
Dimitri Herzog
447821f646
Unable to set IP for http/https port ( #221 ) ( #226 )
...
#221 : Unable to set IP for http/https port
2021-06-28 07:51:46 +02:00
Dimitri Herzog
fb26cb70e3
Fix "misuse of unbuffered os.Signal channel as argument to signal.Notify (govet)" ( #215 )
2021-05-28 09:30:26 +02:00
Dimitri Herzog
114171a45d
set the truncated header when sending large responses via UDP and enable compression #205
2021-05-08 22:56:18 +02:00
Joseph Harnish
d8903bc9c5
#203 : Added version to web interface. ( #195 )
...
* Added more data to template data, and push the version to server.go in the makefile
* moving version and build time to util package, added build time to the web interface
Co-authored-by: Dimitri Herzog <dimitri.herzog@gmail.com>
2021-05-05 22:38:22 +02:00
Dimitri Herzog
209024ed0b
#81 : Configuration of different upstream DNS servers for different clients ( #193 )
...
#81 : Configuration of different upstream DNS servers for different clients
2021-04-22 22:37:59 +02:00
Joseph Harnish
1ea60579a7
#182 - added config option for logTimestamp ( #184 )
...
* added config option for logTimestamp
* set default to be true
2021-04-17 22:23:51 +02:00
Dimitri Herzog
19718629c1
#176 : Use correct Base64 decoding to make DoH really work
2021-04-13 22:51:53 +02:00
moyo
a31fc8d818
Blocking with conditional upstream ( #174 )
...
* blocking with conditional upstream
* cache conditional upstream results
2021-04-10 21:47:08 +02:00
moyo
000bebafb3
Add support of disbale ipv6(AAAA) query ( #171 )
...
Add support of disbale ipv6(AAAA) query
2021-04-06 21:34:10 +02:00
Dimitri Herzog
6075c5fc39
replaced deprecated function
2021-03-26 22:46:58 +01:00
Dimitri Herzog
c0da3269f1
#164 : Changed resolver order (Custom DNS before conditional configuration)
2021-03-26 22:44:16 +01:00
Dimitri Herzog
5fe8bf95af
#139 : Multiple IP addresses for Custom DNS
2021-03-07 22:50:47 +01:00
Dimitri Herzog
eaa4e30db4
update golangci-lint, fixint lint errors
2021-03-05 22:52:22 +01:00
donald-art
7ee2e7db64
public API documentation ( #146 )
...
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
* added doc comments
2021-02-26 13:45:57 +01:00
Dimitri Herzog
8f23f47a6d
Renamed function, replaced global variable with function call, Initialize global logger only once, minor refactorings, fixed failing tests
2021-02-25 23:36:39 +01:00
nicolas-martin
3b0bbc5f6b
use package logger instead of global
2021-02-22 17:28:48 -05:00
Dimitri Herzog
ba74c0f4c5
merge from master
2021-02-20 22:12:27 +01:00
Dimitri Herzog
fb035b2832
Fixed test, extracted functions
2021-02-20 22:02:24 +01:00