Frank Denis
9c73ab3070
Simplify updateCache()
2023-04-07 16:18:50 +02:00
Frank Denis
ea3625bcfd
Try to simplify updateCache() to understand what it does
2023-04-07 16:09:51 +02:00
Frank Denis
f567f57150
up
2023-04-07 15:58:34 +02:00
Frank Denis
c03f1a31eb
Go named return parameters are utterly confusing
2023-04-07 15:37:09 +02:00
Frank Denis
c3c51bb435
Partially re-merge 92ed5b95e0
2023-04-07 15:21:00 +02:00
Frank Denis
0f30b3b028
Revert "Try to understand how cache files are updated"
...
This reverts commit 92ed5b95e0
.
2023-04-07 15:16:15 +02:00
lifenjoiner
6d826afac5
Reduce a local variable ( #2363 )
2023-04-06 14:22:21 +02:00
Frank Denis
b341c21dbd
Merge branch 'master' of github.com:DNSCrypt/dnscrypt-proxy
...
* 'master' of github.com:DNSCrypt/dnscrypt-proxy:
Bump softprops/action-gh-release (#2357 )
Bump actions/setup-go from 3 to 4 (#2354 )
Update deps
Format
Better description for ignore_system_dns
Move booleans together for alignment, avoid unneeded format string
Try dnscrypt-proxy to resolve configured hosts when ignore_system_dns (#2204 )
Downgrade to TLS 1.2 if an 1.3-incompatible cipher suite is set
2023-04-06 14:21:15 +02:00
Frank Denis
92ed5b95e0
Try to understand how cache files are updated
...
Having to keep a copy of all the files in memory is weird.
We shouldn't have to do that.
2023-04-06 14:19:25 +02:00
Frank Denis
b898e07066
A source URL may have an IP address that doesn't exist any more
2023-04-06 14:18:38 +02:00
Frank Denis
36c17eb59a
Format
2023-04-05 21:33:21 +02:00
Frank Denis
b9f8f78c6e
Better description for ignore_system_dns
2023-04-05 21:31:07 +02:00
Frank Denis
fc16e3c31c
Move booleans together for alignment, avoid unneeded format string
2023-04-05 21:20:42 +02:00
lifenjoiner
b3318a94b7
Try dnscrypt-proxy to resolve configured hosts when ignore_system_dns ( #2204 )
2023-04-05 21:17:51 +02:00
Frank Denis
ca0f353087
Downgrade to TLS 1.2 if an 1.3-incompatible cipher suite is set
...
Fixes #2359
2023-04-05 20:53:27 +02:00
Frank Denis
beb002335f
Add an example forwarding rule with Tor
2023-03-23 12:53:08 +01:00
Frank Denis
47e6a56b16
Logger: pre-create log files before lumberjack does
...
Clunky workaround for https://github.com/natefinch/lumberjack/issues/164
2023-02-25 23:42:38 +01:00
Frank Denis
03c6f92a5f
Use crypto_rand() everywhere
2023-02-24 16:20:39 +01:00
lifenjoiner
24a301b1af
Fix DoH3 connections piling up ( #2337 )
...
DoH3 creates a new connection for each request without closing.
* `Conn` should be self maintained if it's created by customized `Dial` of `http3.RoundTripper`.
https://pkg.go.dev/github.com/quic-go/quic-go#DialAddrEarlyContext
* http3 doesn't have a `CloseIdleConnections`.
https://pkg.go.dev/net/http#Client.CloseIdleConnections
2023-02-24 16:14:43 +01:00
lifenjoiner
a8d1c2fd24
dlog.SetLogLevel(dlog.SeverityDebug)
if go test -v
(#2331 )
2023-02-21 16:24:11 +01:00
Frank Denis
acc25fcefb
Format with gofumpt
2023-02-11 14:27:12 +01:00
Frank Denis
9f3ef735f2
Bump
2023-02-07 11:03:09 +01:00
Frank Denis
68f3ab249c
Unbreak cloaking plugin
...
In version 2.1.3, when the cloaking pluging was enabled, a blocked
response was returned for records that were not A/AAAA/PTR, even
with names that were not in the cloaked list.
2023-02-07 11:03:05 +01:00
lifenjoiner
683aad75da
Nits ( #2293 )
2023-02-03 16:23:57 +01:00
lifenjoiner
e1c7ea1770
Make CodeQL happy ( #2294 )
2023-02-03 16:22:32 +01:00
Frank Denis
f7df72eafa
Bump to 2.1.3
2023-02-02 20:10:54 +01:00
Frank Denis
fb15535282
Format
2023-02-02 20:10:49 +01:00
Frank Denis
9e208e6090
Cloak plugin: reject uncloaked records, except NS & SOA
...
Fixes #2220
2023-02-02 19:59:47 +01:00
Frank Denis
5f88a9146c
Get rid of the latest ioutil bits
2023-02-02 19:44:51 +01:00
Frank Denis
3f23ff5c08
Mostly get rid of ioutil
2023-02-02 19:38:24 +01:00
Frank Denis
33c8027e0a
Use a custom dialer for HTTP/3
2023-02-02 19:32:17 +01:00
Deltadroid
c3fd855831
Update quic-go dependency to support go 1.20 ( #2292 )
2023-02-02 12:42:11 +01:00
Frank Denis
f21eca0764
Add time.google.com IP addresses to the captive portals example
2022-12-30 13:50:31 +01:00
Frank Denis
c883949a97
Document cert_ignore_timestamp
2022-12-29 22:39:12 +01:00
Frank Denis
361455cd58
ServiceManagerReadyNotify is not just for systemd
2022-10-20 15:33:43 +02:00
cobratbq
77059ce450
systemd: report Ready earlier as dnscrypt-proxy can itself manage retries for updates/refreshes ( #2225 )
2022-10-20 15:32:26 +02:00
Frank Denis
09a6918226
Use os.Geteuid()
...
Fixes #2224
2022-10-18 14:56:39 +02:00
lifenjoiner
4881186dcf
Optimize adopted relay name to show ( #2188 )
...
* Optimize adopted relay name to show
DNSCrypt relay requires ServerAddrStr;
ODoH relay requires ProviderName, port 443 can be either present or not;
raw stamp can be both.
Displaying specified stamp makes it easier to debug.
* Fix pasto
2022-08-25 19:28:04 +02:00
Frank Denis
41f192a907
Mention HTTP/3
2022-08-24 17:35:34 +02:00
Frank Denis
937c1e63e2
Revert "xtransport layer to netip and immediate dependencies ( #2159 )"
...
This reverts commit baee50f1dc
.
2022-08-10 22:24:36 +02:00
lifenjoiner
55fc4c207b
Log to console when in command mode ( #2167 )
...
Quick results.
Avoid overwriting the log file in use, by the same config most of the time.
2022-08-03 14:52:08 +02:00
Ian Bashford
baee50f1dc
xtransport layer to netip and immediate dependencies ( #2159 )
2022-08-01 22:31:12 +02:00
Frank Denis
8523a92437
Update example to include http3 configuration
2022-07-24 16:16:21 +02:00
Frank Denis
442f2e15cb
Make HTTP/3 support configurable
2022-07-24 16:13:14 +02:00
Frank Denis
5977de660b
Add suport for DoH over HTTP/3
2022-07-21 18:50:10 +02:00
lifenjoiner
91388b148c
Optimize stopping CaptivePortalHandler - 2 ( #2155 )
...
1. Fix early return that triggers port rebinding error by 8e46f447
.
2. Reduce waiting time while there are multiple listen_addresses.
2022-07-19 12:35:52 +02:00
lifenjoiner
8e46f44799
Optimize stopping CaptivePortalHandler ( #2151 )
...
* Optimize stopping CaptivePortalHandler
* Still use unbuffered channel as we close it instead of sending a signal
2022-07-14 21:53:13 +02:00
Frank Denis
3d641b758a
Bump
2022-07-13 18:49:50 +02:00
lifenjoiner
568f54fabb
Reduce comparisons ( #2148 )
2022-07-08 14:11:51 +02:00
Frank Denis
38e87f9a7b
Add a constant for the maximum number of attempts
2022-06-28 18:30:15 +02:00