1
1
Fork 0
mirror of https://github.com/DNSCrypt/encrypted-dns-server.git synced 2024-05-21 22:06:08 +02:00
Commit Graph

103 Commits

Author SHA1 Message Date
Frank Denis 78eb2719ab Revert "Remove daemonization, it's always been broken"
This reverts commit 4f22725931.
2021-06-20 00:55:47 +02:00
Frank Denis 4f22725931 Remove daemonization, it's always been broken
Fixes #68
2021-06-20 00:03:30 +02:00
Frank Denis 8c35df5705 Upgrade socket2 - Same thing, just breaking API changes 2021-03-15 16:18:27 +01:00
Frank Denis 1eeed9ab83 Remove annoying clippy checks 2021-02-25 20:39:35 +01:00
Frank Denis 631ebd4776 Nits 2021-02-09 22:33:05 +01:00
Frank Denis 156adf46c3 Upgrade to tokio 1.0.0 2020-12-23 21:42:37 +01:00
Frank Denis ed72e0e064 Don't bail out if only metrics are enabled 2020-11-02 22:17:46 +01:00
Frank Denis 0526aba47b Bail out if metrics and daemonization are enabled simultaneously 2020-10-09 19:11:34 +02:00
Frank Denis 24284541b0 Don't hardcode the TCP backlog 2020-08-22 18:40:00 +02:00
Frank Denis 6a19db5edf Merge branch 'master' of github.com:jedisct1/rust-dnscrypt-server
* 'master' of github.com:jedisct1/rust-dnscrypt-server: (30 commits)
  Update Prometheus and friends
  Remove nightly feature from clap
  client_ttl_jitter -> client_ttl_holdon
  Use specific lengths for big arrays
  Update serde-big-array requirement from 0.2.0 to 0.3.0
  Update deps
  Add decreasing TTLs with jitter when a TTL becomes low
  Update precompiled binaries
  Bump
  Add my_ip feature
  dafuq
  Update deps
  Require tokio 0.2.17
  Update tokio dep due to a regression in the previous version
  Update precompiled binaries
  Bump
  Update deps to force a tokio update
  Revert "Disable parking_lot for tokio"
  Bump
  Disable parking_lot for tokio
  ...
2020-05-19 11:10:24 +02:00
Frank Denis eaba8d3db5 Replace net2 with socket2
The Rust ecosystem being the Rust ecosystem, essential crates always get
abandoned after a couple months, and apps need to be rewritten for the
replacement du jour.
2020-05-19 11:07:51 +02:00
Frank Denis 561ebd07f4 client_ttl_jitter -> client_ttl_holdon 2020-05-05 17:27:28 +02:00
Frank Denis dd1b550ef9 Add decreasing TTLs with jitter when a TTL becomes low
Fixes #33
2020-04-24 22:56:29 +02:00
Frank Denis 75166216b9 Add my_ip feature 2020-04-20 16:24:18 +02:00
Frank Denis 2a96c5f985 dafuq 2020-04-20 15:44:42 +02:00
Frank Denis 792f82fa35 Print something when access control is enabled 2020-03-20 11:09:39 +01:00
Frank Denis b9361a8711 Fail open if the tokens list is empty 2020-03-20 10:56:26 +01:00
Frank Denis 5ebd393981 Clippify 2020-03-20 10:55:37 +01:00
Frank Denis d5b06a6653 Implement access control 2020-03-20 10:43:54 +01:00
Frank Denis 9b464fe135 Clarify 2020-01-14 22:19:23 +01:00
Frank Denis 58b8d6f5f0 Continue on TCP accept errors 2020-01-14 20:54:04 +01:00
Frank Denis af22d59ce8 Add an option to disable DNSCrypt, and do only TLS and relaying 2019-12-22 00:50:09 +01:00
Frank Denis e9e5c700f0 Add ignore_unqualified_hostnames 2019-12-07 23:25:32 +01:00
Frank Denis 3864de1951 Add the ability to return synthetic response for undelegated TLDs 2019-12-07 19:52:21 +01:00
Frank Denis 3d3a96a6f9 More statistics; keep track of NXDOMAIN responses 2019-12-07 17:24:44 +01:00
Frank Denis 3cc28670cb Prometheus: use int counters and gauges 2019-12-07 17:03:18 +01:00
Frank Denis bf5f0b3568 Update to tokio 0.2 2019-12-04 18:12:45 +01:00
Frank Denis df26dddb86 Revert "Allow serve_stale to be disabled"
This reverts commit 3b2301dcbf.
2019-11-24 16:16:36 +01:00
Frank Denis 3b2301dcbf Allow serve_stale to be disabled 2019-11-24 15:29:49 +01:00
Frank Denis a6fb79a2b2 Make the project compatible with rust-stable 2019-11-08 13:06:21 +01:00
Frank Denis 48d0588337 Use SystemTime for the certificate's time
Also don't use mem::forget() for the updater, because who knows, Rust
optimizations may be too aggressive.

Maybe
Fixes #13
2019-11-05 11:38:45 +01:00
Frank Denis 4d584d95e6 Move from failure to anyhow 2019-11-01 20:56:07 +01:00
Frank Denis d0c37819e2 Relax size check for certificates 2019-10-20 18:05:26 +02:00
Frank Denis 0c134b5393 Cache relayed certificates
To make it slightly more difficult for servers to fingerprint users by
rotating certificates too frequently.
2019-10-20 11:18:45 +02:00
Frank Denis 5b77be1ac0 Pick IPv4 or IPv6 wildcard source addresses according to the destination
Fixes #10
2019-10-19 11:36:16 +02:00
Frank Denis 2706b2994d Add a reasonable default set of ports + a new option 2019-10-17 22:44:43 +02:00
Frank Denis e43ad4949b to_tcp_listener() is essentially useless 2019-10-17 12:01:28 +02:00
Frank Denis 6483d3d4d7 Set IPV6_ONLY on IPv6 sockets
Fixes #9
2019-10-17 11:10:25 +02:00
Frank Denis 3fc7387d9f Don't be too restrictive, we still need to serve certificates 2019-10-15 02:07:05 +02:00
Frank Denis 82e73374ab Anonymized DNS is here 2019-10-14 11:10:55 +02:00
Frank Denis 72dfb0628c Prepare a new configuration section for Anonymized DNS 2019-10-13 22:47:57 +02:00
Frank Denis 9db26ba20b Preliminary support for Anonymized DNS 2019-10-13 22:34:46 +02:00
Frank Denis ca35d6fdc8 Ensure that PK prefixes don't match the Anonymized DNSCrypt query magic 2019-10-09 17:55:49 +02:00
Frank Denis cf41840573 We can use Default::default() instead of tokio's Handle
What kind of magic is that?
2019-10-07 19:21:18 +02:00
Frank Denis 71699d8476 Some initial metrics 2019-10-02 11:41:59 +02:00
Frank Denis 27e6097dc9 Prometheus metrics 2019-10-01 20:58:51 +02:00
Frank Denis f77a5aed47 Add metrics 2019-10-01 18:07:55 +02:00
Frank Denis 7ab967e163 Refactor the resolver part a little bit 2019-10-01 08:58:50 +02:00
Frank Denis 6fa13f825d Revert direct usage of FutureExt 2019-09-27 00:11:02 +02:00
Frank Denis 7ebcc7287e Tokio update, that makes things more complicated 2019-09-26 19:56:40 +02:00