Commit graph

349 commits

Author SHA1 Message Date
Frank Denis
7ff594de3b Only check the content type on POST queries
Fixes #25
2019-06-15 11:02:01 +02:00
Frank Denis
cc00e62f82 Bump 2019-06-11 13:13:29 +02:00
Frank Denis
224609ea9b Check content-type instead of accept
Fixes #23
2019-06-04 23:24:15 +02:00
Frank Denis
217bb90320 Return various HTTP error codes on invalid queries
Fixes #23
2019-06-04 18:34:32 +02:00
Frank Denis
de99e6a8b2 Return BAD_REQUEST on short queries for POST queries, too
Fixes #20
2019-06-01 00:58:43 +02:00
Frank Denis
dbef23142a Update tokiox 2019-06-01 00:58:34 +02:00
Frank Denis
30f2a7e86a Bump 2019-05-27 14:34:53 +02:00
Frank Denis
d02fa3d393 Add an option to disabe POST queries
CDNs such as Cloudflare may not cache POST queries.

Refusing POST queries is not a big deal, since dnscrypt-proxy will
transparently switch to GET.
2019-05-27 14:31:22 +02:00
Frank Denis
7612e9a57f Bump 2019-05-19 12:41:22 +02:00
Frank Denis
764d7c3a64 Update the documentation 2019-05-19 12:41:07 +02:00
Frank Denis
ed47ab8a1b LTO 2019-05-19 12:18:14 +02:00
Frank Denis
1706ec0dcb Make TLS an optional feature 2019-05-19 11:38:55 +02:00
Frank Denis
badcb6104d Update the documentation 2019-05-16 17:51:15 +02:00
Frank Denis
58a0ef3347 Enable keepalive by default, add a switch to disable it 2019-05-16 17:15:07 +02:00
Frank Denis
dc7480c3f9 Bump deps 2019-05-16 17:00:33 +02:00
Frank Denis
d691562f60 Add preliminary support for TLS 2019-05-16 16:59:52 +02:00
Frank Denis
ed9c50777a Bump 2019-05-12 02:05:32 +02:00
Frank Denis
b723245bec Allow Cargo.lock 2019-05-12 02:00:49 +02:00
Frank Denis
4b7956bc78 pub(crate) 2019-05-12 01:57:04 +02:00
Frank Denis
a65e1883ee Import utils 2019-05-12 01:55:36 +02:00
Frank Denis
08675c6243 Update deps 2019-05-12 01:46:49 +02:00
Frank Denis
4cdb23d9fa Add padding 2019-05-12 01:46:44 +02:00
Frank Denis
0fc3a23d04 Update a few dependencies 2019-04-19 20:51:20 +02:00
Frank Denis
587c725ca5 Update the README file 2019-03-16 21:07:40 +01:00
Frank Denis
4e4f9aeea8 Bump and require specific versions for tokio/futures/hyper 2019-03-16 21:06:47 +01:00
Frank Denis
b3587f9694 Make TTLs configurable and slightly bump the defaults 2019-03-16 21:04:11 +01:00
Frank Denis
d17e6d767f Bump 2019-03-16 20:29:48 +01:00
Frank Denis
5a07001129 Use jemalloc, because glibc's allocator is crap 2019-03-13 20:30:17 +01:00
Frank Denis
d22331d106 Factorize RR traversal code 2019-03-13 19:52:54 +01:00
Frank Denis
8ad7edbf0e Set the max payload size in the outgoing queries 2019-03-13 19:20:13 +01:00
Frank Denis
2f85b58f33 Use Rust 2018 2019-03-12 02:09:26 +01:00
Frank Denis
4ae4c5d974 Bump 2019-03-12 02:06:43 +01:00
Frank Denis
9ecdb3dcd7 Handle timeouts 2019-03-12 01:56:54 +01:00
Frank Denis
37c0024e10 Update base64 2019-03-12 01:16:20 +01:00
Frank Denis
a8cd28fff8 2019 2019-02-18 14:53:07 +01:00
Frank Denis
98a0c59047 Don't use tokio_current_thread; update tokio-timer (which doesn't work) 2018-10-01 11:57:46 +02:00
Frank Denis
2723bd3ac6 Refactor clients_count things 2018-10-01 00:37:02 +02:00
Frank Denis
9dcbc328d4 Decrement the clients count on timeout 2018-10-01 00:32:48 +02:00
Frank Denis
737c5b4d24 Compatibility with ancient rust versions
Maybe
fixes #14
2018-10-01 00:04:02 +02:00
Frank Denis
34c043288a Bump 2018-08-24 19:40:14 +02:00
Frank Denis
82587db5f6 Use tokio-current-thread 2018-08-24 19:39:30 +02:00
Frank Denis
81518fe385 Bleh 2018-08-24 19:35:45 +02:00
Frank Denis
2d03cf4b55 Decrease the client count on server error 2018-08-24 19:30:43 +02:00
Frank Denis
93d90acd32 Bump version, remove clippy dev dependency by the way 2018-08-21 14:09:46 +02:00
Frank Denis
61d1e7cb0e Implement the (deprecated) description() function for old Rust versions
Fixes #10
2018-08-21 12:05:06 +00:00
Frank Denis
22b51a4c20 Bump 2018-08-16 21:14:14 +02:00
Frank Denis
a31c9d225a The VSCode crates plugin is enough 2018-08-16 21:13:53 +02:00
Frank Denis
12ce22060c Do not ignore the -p (path) command-line parameter
Print the full URI at startup
2018-08-16 21:13:10 +02:00
Frank Denis
b480b85e84 Remove useless comment 2018-08-16 19:49:53 +02:00
Frank Denis
d14dd35ab0 Back to tokio-timer 0.1 2018-07-07 22:59:29 +02:00