Frank Denis
06b0976786
Remove the serverInfo rwlock; just use the global serversInfo rwlock
2019-10-31 17:50:56 +01:00
Frank Denis
3a68f90c37
Back to 2.0.29 beta 3 ( ceed905196
)
2019-10-31 17:50:19 +01:00
Frank Denis
4824e91d46
Remove the serverInfo rwlock; just use the global serversInfo rwlock
2019-10-26 17:28:24 +02:00
Frank Denis
3ddb134190
Reduce contention
2019-10-21 18:50:20 +02:00
Markus Linnala
bc831816f5
feature: xtransport: Expire CachedIPs, split resolve function from Fetch
...
I selected default ttl when resolving using system to be 86400 / 24h.
As the program can run long time, I think it is relevant to honor TTL
when resolving and caching results.
Change cache internal format from string to net.IP. This should ensure
there is no need to further check validity of value later when using.
Resolve part was too big and had only one purpose. So it is fine
candidate to be own function.
2019-10-21 18:12:49 +02:00
Markus Linnala
1b4f873026
fix: serversInfo: use lb strategy always even with estimator
...
I don't see why estimator should select which candidate to use.
2019-10-20 21:30:24 +02:00
Markus Linnala
bc9a37e550
fix: serversInfo: Fix strategy ph to use half of values
...
Without this fix 'ph' is essentially the same sa 'p2'.
2019-10-20 21:30:24 +02:00
Markus Linnala
147078d588
cleanup: serversInfo: parse host from ServerAddrStr with ExtractHostAndPort
...
Use only one method to parse host from port.
2019-10-20 21:30:24 +02:00
Frank Denis
fccf0ba984
Improve logging
2019-10-20 19:40:03 +02:00
Frank Denis
551ddcf199
Improve logging
2019-10-20 19:11:54 +02:00
Frank Denis
320197a00e
Accept relay names in routes, improve documentation
2019-10-20 14:19:21 +02:00
Frank Denis
535bce308c
Retry over a direct connection if we can't get a cert via a relay
...
This is temporary and only to provide compatibility with servers not
running the latest version of encrypted-dns-server.
2019-10-20 12:26:12 +02:00
Frank Denis
ff13c813e4
Support relaying for certificates retrieval
2019-10-19 23:50:05 +02:00
Markus Linnala
e5221167e1
cleanup: serversInfo: refreshServer does not use previousIndex as index, use bool instead
2019-10-18 20:24:11 +02:00
Markus Linnala
2a51dca073
cleanup: serversInfo: fetchServerInfo does not use serversInfo
2019-10-18 20:24:11 +02:00
Markus Linnala
683b111bf9
cleanup: serversInfo: simplify handling onld/new servers
2019-10-18 20:24:11 +02:00
Markus Linnala
cab67ba5a9
cleanup: drop registerServer proxy as not used
2019-10-18 20:24:11 +02:00
Markus Linnala
21d71ac9be
change: serversInfo: Use sort instead of own implementation
2019-10-18 20:24:11 +02:00
Markus Linnala
9b019574a0
cleanup: serversInfo : Simplify liveServers handling
2019-10-18 20:24:11 +02:00
Frank Denis
322447aa91
Support multiple routes per destination
2019-10-14 12:08:47 +02:00
Frank Denis
f06967a020
Accept stamps of the new DNSCryptRelay type
2019-10-14 02:26:05 +02:00
Frank Denis
0e8ca9009e
Implement Anonymized DNS
2019-10-14 01:45:38 +02:00
Frank Denis
d2aa521369
Add a command-line option to print the server certificate hashes
2019-06-07 01:23:48 +02:00
Frank Denis
aca031c2ec
Don't display sorted latencies if there is only one (or none)
2019-06-03 18:51:21 +02:00
Frank Denis
ae2d036703
setting -> lowering
2019-06-03 17:35:16 +02:00
Frank Denis
313ca48cad
rtt -> RTT
2019-06-03 17:32:54 +02:00
Frank Denis
36e3691ccc
Log the current candidate's RTT
2019-06-03 17:32:23 +02:00
Frank Denis
62e8d193c0
Round numbers
2019-06-03 17:10:38 +02:00
Frank Denis
b63df9cdfa
Initialize the server rtt with the startup measurement
2019-06-03 17:07:30 +02:00
Frank Denis
30f2a4fd6b
Misc fixes
...
- Set LBEstimator to true by default
- Shuffle the servers list at startup
- Add the server name to the query log
2019-06-03 16:49:06 +02:00
Frank Denis
9e2a945fff
Print the sorted list of latencies
...
Add an option to disable the load-balancing estimator
2019-06-03 13:04:59 +02:00
Frank Denis
2e89c8da01
Rename LbStrategyFastest to LbStrategyFirst
2019-06-02 13:24:24 +02:00
Frank Denis
0e2d78d21b
Warn is DoH is requested but HTTP/2 is not supported
2019-05-12 09:55:13 +02:00
Frank Denis
26cc68b748
Make startup *way* faster, especially when using DoH
2019-03-14 01:59:57 +01:00
Frank Denis
3d67c81697
Deps update
2018-04-18 18:58:39 +02:00
Frank Denis
f63dc17f90
stamps -> dnsstamps
2018-04-18 18:47:10 +02:00
gdm85
eb5f391fa6
Split stamps into package
2018-04-18 18:36:47 +02:00
Frank Denis
3dbdf54c1f
Warn about failed handshakes earlier and fallback to default suite
2018-04-11 11:42:30 +02:00
Frank Denis
19db1a1560
If we get a TLS handshake error, recommend using the default suite
2018-04-10 11:26:31 +02:00
Frank Denis
adb0c94a61
April 1st is already over in some time zones :)
...
This reverts commit dac52ab42a
.
2018-04-01 16:35:32 +02:00
Frank Denis
dac52ab42a
Completely remove support for the DNSCrypt protocol
2018-04-01 04:04:12 +02:00
Frank Denis
a0aeeabfa2
Nits
2018-03-17 14:47:17 -07:00
Frank Denis
3910873bf2
Make the serverInfo list a list of pointers
...
Maybe
fixes #201
2018-03-02 02:30:25 +01:00
Frank Denis
519af2e532
Revert "Allow -test 0"
...
This reverts commit 1e2c175e19
.
Revert "Don't bind any sockets when using -test"
This reverts commit 982f341de8
.
Revert "Implement -test to check certificates expiration"
This reverts commit 2158674d17
.
2018-02-27 07:55:10 +01:00
Frank Denis
2158674d17
Implement -test to check certificates expiration
2018-02-27 02:52:45 +01:00
a1346054
1a1a468f58
Fix spelling
2018-02-26 21:26:31 +00:00
Frank Denis
4ec5461b2f
Mark servers as failing more aggressively
2018-02-22 14:20:59 +01:00
Frank Denis
358481d728
Simplify
2018-02-21 02:40:54 +01:00
Frank Denis
14075e31dc
Vastly improve the way load balancing works
2018-02-21 00:14:18 +01:00
Frank Denis
7f5d67881b
Add a super secret way to print cert hashes
...
Not so secret. The purpose is to avoid log pollution, while still
allowing people setting up DoH servers to quickly view the
certificate chain.
2018-02-05 13:24:17 +01:00