Commit Graph

103 Commits (78eb2719abe6ce951945d92f54cb54e35957ac55)

Author SHA1 Message Date
Frank Denis 78eb2719ab Revert "Remove daemonization, it's always been broken"
This reverts commit 4f22725931.
3 years ago
Frank Denis 4f22725931 Remove daemonization, it's always been broken
Fixes #68
3 years ago
Frank Denis 8c35df5705 Upgrade socket2 - Same thing, just breaking API changes 3 years ago
Frank Denis 1eeed9ab83 Remove annoying clippy checks 3 years ago
Frank Denis 631ebd4776 Nits 3 years ago
Frank Denis 156adf46c3 Upgrade to tokio 1.0.0 3 years ago
Frank Denis ed72e0e064 Don't bail out if only metrics are enabled 4 years ago
Frank Denis 0526aba47b Bail out if metrics and daemonization are enabled simultaneously 4 years ago
Frank Denis 24284541b0 Don't hardcode the TCP backlog 4 years ago
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
  ...
4 years ago
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.
4 years ago
Frank Denis 561ebd07f4 client_ttl_jitter -> client_ttl_holdon 4 years ago
Frank Denis dd1b550ef9 Add decreasing TTLs with jitter when a TTL becomes low
Fixes #33
4 years ago
Frank Denis 75166216b9 Add my_ip feature 4 years ago
Frank Denis 2a96c5f985 dafuq 4 years ago
Frank Denis 792f82fa35 Print something when access control is enabled 4 years ago
Frank Denis b9361a8711 Fail open if the tokens list is empty 4 years ago
Frank Denis 5ebd393981 Clippify 4 years ago
Frank Denis d5b06a6653 Implement access control 4 years ago
Frank Denis 9b464fe135 Clarify 4 years ago
Frank Denis 58b8d6f5f0 Continue on TCP accept errors 4 years ago
Frank Denis af22d59ce8 Add an option to disable DNSCrypt, and do only TLS and relaying 4 years ago
Frank Denis e9e5c700f0 Add ignore_unqualified_hostnames 4 years ago
Frank Denis 3864de1951 Add the ability to return synthetic response for undelegated TLDs 4 years ago
Frank Denis 3d3a96a6f9 More statistics; keep track of NXDOMAIN responses 4 years ago
Frank Denis 3cc28670cb Prometheus: use int counters and gauges 4 years ago
Frank Denis bf5f0b3568 Update to tokio 0.2 5 years ago
Frank Denis df26dddb86 Revert "Allow serve_stale to be disabled"
This reverts commit 3b2301dcbf.
5 years ago
Frank Denis 3b2301dcbf Allow serve_stale to be disabled 5 years ago
Frank Denis a6fb79a2b2 Make the project compatible with rust-stable 5 years ago
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
5 years ago
Frank Denis 4d584d95e6 Move from failure to anyhow 5 years ago
Frank Denis d0c37819e2 Relax size check for certificates 5 years ago
Frank Denis 0c134b5393 Cache relayed certificates
To make it slightly more difficult for servers to fingerprint users by
rotating certificates too frequently.
5 years ago
Frank Denis 5b77be1ac0 Pick IPv4 or IPv6 wildcard source addresses according to the destination
Fixes #10
5 years ago
Frank Denis 2706b2994d Add a reasonable default set of ports + a new option 5 years ago
Frank Denis e43ad4949b to_tcp_listener() is essentially useless 5 years ago
Frank Denis 6483d3d4d7 Set IPV6_ONLY on IPv6 sockets
Fixes #9
5 years ago
Frank Denis 3fc7387d9f Don't be too restrictive, we still need to serve certificates 5 years ago
Frank Denis 82e73374ab Anonymized DNS is here 5 years ago
Frank Denis 72dfb0628c Prepare a new configuration section for Anonymized DNS 5 years ago
Frank Denis 9db26ba20b Preliminary support for Anonymized DNS 5 years ago
Frank Denis ca35d6fdc8 Ensure that PK prefixes don't match the Anonymized DNSCrypt query magic 5 years ago
Frank Denis cf41840573 We can use Default::default() instead of tokio's Handle
What kind of magic is that?
5 years ago
Frank Denis 71699d8476 Some initial metrics 5 years ago
Frank Denis 27e6097dc9 Prometheus metrics 5 years ago
Frank Denis f77a5aed47 Add metrics 5 years ago
Frank Denis 7ab967e163 Refactor the resolver part a little bit 5 years ago
Frank Denis 6fa13f825d Revert direct usage of FutureExt 5 years ago
Frank Denis 7ebcc7287e Tokio update, that makes things more complicated 5 years ago