Commit Graph

199 Commits

Author SHA1 Message Date
Frank Denis 3a68f90c37 Back to 2.0.29 beta 3 (ceed905196) 2019-10-31 17:50:19 +01:00
Frank Denis fb1fc14317 Revert "refactoring of pull 980"
This reverts commit 6fa420a8e0.
2019-10-31 17:36:59 +01:00
Frank Denis 7636a78d74 Revert "avoid LoadConfig twice"
This reverts commit 8f2c438c70.
2019-10-31 17:36:32 +01:00
Frank Denis 828af28658 Revert "move ConfigLoad and InitPluginsGlobals to appMain"
This reverts commit b67d19ffb3.
2019-10-31 17:36:28 +01:00
Frank Denis 393195066e Up 2019-10-31 16:50:38 +01:00
Vladimir Bauer b67d19ffb3 move ConfigLoad and InitPluginsGlobals to appMain 2019-10-31 15:04:12 +01:00
Vladimir Bauer 8f2c438c70 avoid LoadConfig twice 2019-10-31 15:04:12 +01:00
Vladimir Bauer 65de188423 don't use syscall directly 2019-10-31 15:04:12 +01:00
Vladimir Bauer 6fa420a8e0 refactoring of pull 980
follow up on https://github.com/DNSCrypt/dnscrypt-proxy/pull/980#issuecomment-548153169
2019-10-31 15:04:12 +01:00
Alison Winters 7307c51d6f move ConfigLoad into Start function when running as a service (take 2) 2019-10-31 09:53:44 +01:00
Alison Winters b80e4957d1 move flags parsing into main() 2019-10-31 09:53:44 +01:00
Frank Denis 899cd07239 Bump 2019-10-30 23:02:07 +01:00
Will Elwood 37c939480d
Potential fix for #998
I haven't tested this change, but it should be as simple as that.
2019-10-30 19:01:37 +00:00
Frank Denis 778b2cccc1 Revert "move ConfigLoad into Start function when running as a service"
This reverts commit 9aeec3478f.
2019-10-30 08:02:31 +01:00
Alison Winters 9aeec3478f move ConfigLoad into Start function when running as a service 2019-10-28 15:29:02 +01:00
Frank Denis 4eea03c9a1 No more beta 2019-10-28 12:18:51 +01:00
Vladimir Bauer 6680faf665 make sure tcp/udp Conn are closed on stop signal 2019-10-25 12:56:34 +02:00
Vladimir Bauer 220d418f2f make sure app main goroutine quits, before stopping 2019-10-25 12:56:34 +02:00
Frank Denis c11723101a Bump 2019-10-20 19:46:25 +02:00
Frank Denis 7fc7eb6f07 Bump 2019-10-20 02:15:06 +02:00
Markus Linnala 5bf5fe6c1d cleanup: main: simplify proxy handling 2019-10-18 20:24:11 +02:00
Frank Denis dae384f078 2.0.29-beta.1 2019-10-14 12:11:13 +02:00
Frank Denis e974780026 Bump 2019-10-12 21:30:47 +02:00
Frank Denis 4974ce98a3 Update ChangeLog 2019-09-09 18:12:36 +02:00
Frank Denis 208c67b53b Print the version before the netprobe
Fixes #901
2019-09-07 11:30:46 +02:00
Frank Denis 0f264fe38e 2.0.25 2019-06-04 01:42:02 +02:00
Frank Denis 8e01421304 Bump 2019-06-03 18:31:58 +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 a8045e0a7a Bump 2019-04-28 23:26:33 +02:00
Frank Denis f744110d38 Bump 2019-04-01 08:24:58 +02:00
Frank Denis 85abbeac61 Bump 2019-03-14 20:21:26 +01:00
Frank Denis 8076e206e0 Revert "Install the windows service as "NT AUTHORITY\NetworkService""
This reverts commit 17db0a658f.

On Windows, switching to user `NT AUTHORITY\NetworkService` apparently
breaks logging (reported by @Aland_123).
2019-03-14 20:10:53 +01:00
Frank Denis 707098a922 Bump 2019-03-14 02:18:20 +01:00
Frank Denis cb022ece82 Set GODEBUG to enable TLS 1.3
Fixes #731
2019-02-17 23:56:02 +01:00
Frank Denis 17db0a658f Install the windows service as "NT AUTHORITY\NetworkService"
Untested

Maybe
Fixes #686
2019-01-10 22:44:58 +01:00
Frank Denis 436125e812 Bump 2018-11-22 17:26:48 +01:00
Frank Denis 07de104ec7 Bump 2018-11-15 18:53:06 +01:00
Frank Denis 8de13842ae Bump 2018-10-03 18:26:54 +02:00
Frank Denis 9f1be6e079 killChild() is not needed any more; update config example by the way 2018-10-03 16:35:59 +02:00
Frank Denis 844057d9df Revert "Revert "Remove pledge(2) support""
This reverts commit a24cb0d900.
2018-08-23 00:44:32 +02:00
Frank Denis a24cb0d900 Revert "Remove pledge(2) support"
This reverts commit bc3215a8a6.
2018-08-15 17:56:33 +02:00
Frank Denis bc3215a8a6 Remove pledge(2) support
Fixes #571
2018-08-15 17:53:36 +02:00
Sebastian Schmidt 33bcff7d4a Minor improvements for the user_name option (#559)
* Fix missing pidfile when run with user_name opt.

* Make sure we are root when dropping privilege

This is required on macOS.

* Kill child process on exit. Fixes https://github.com/jedisct1/dnscrypt-proxy/issues/547
2018-08-04 00:57:52 +02:00
Frank Denis c043bd73dd Ping the service manager early
Maybe
fixes #548

(untested)
2018-07-19 19:03:57 +02:00
Frank Denis c90579b731 Bump 2018-07-09 15:56:50 +02:00
Frank Denis 1f54214821 pledge() on OpenBSD 2018-07-07 20:27:09 +02:00
Frank Denis 7f8b8d043e Remove old daemonization code
We will be able do it using fork+exec
2018-06-13 17:31:47 +02:00
Frank Denis 7866e6da51 Bump 2018-06-06 16:14:31 +02:00
Frank Denis 26579df8d1 Bump 2018-05-19 10:40:15 +02:00
Frank Denis d87f3618ac Bump 2018-05-16 11:41:55 +02:00
Frank Denis 6f047e07b8 Bump 2018-05-10 22:17:57 +02:00
Frank Denis bcaff6e3bd 2.0.11 2018-04-27 00:12:09 +02:00
Frank Denis a5b8401131 Bump 2018-04-16 02:33:10 +02:00
Frank Denis e2dd9c97a2 Remove b2
Fixes #347
2018-04-11 14:05:16 +02:00
Frank Denis aa538969a3 New beta 2018-04-09 13:27:02 +02:00
Frank Denis fcdf7d7e55 Update ChangeLog 2018-04-07 23:14:15 +02:00
Frank Denis fbe91ee58b No need to initialize xTransport before we have all the parameters 2018-04-07 22:33:11 +02:00
Frank Denis a938eeff7b Mainly revert 869d44c30e
Fixing #304 doesn't look trivial

The service module needs to know the arguments right away.

The arguments haven't been parsed yet. And if we do, we will prevent
further arguments to be added to the set. Including the ones added
by the service module itself.

So, we have quite of a circular dependency here.

If someone with some Go knowledge can fix that, that would be amazing.
But it's probably never going to happen.

Meanwhile, we can try to save the current directory and document
that we have to be in that directory when running the install command.

Which is not going to work on Windows, so this is a big fucking mess
2018-04-03 20:15:33 +02:00
Frank Denis c88e480a15 Include the -config option in the installed service
Untested on Linux and Windows. Fear.

Fixes #304
2018-04-03 19:42:27 +02:00
Frank Denis 5cc4663081 Bump 2018-03-29 11:22:20 +02:00
Frank Denis 50053d32a5 Bump 2018-03-18 09:21:36 -07:00
Frank Denis a0aeeabfa2 Nits 2018-03-17 14:47:17 -07:00
Frank Denis 2c7513a2c8 2.0.6 2018-03-02 11:05:58 +01:00
Frank Denis 85a64e3327 Add -pidfile
Fixes #200
2018-02-28 18:11:48 +01:00
Frank Denis 89d2973458 2.0.5 2018-02-27 09:51:26 +01:00
Frank Denis 38fd879b56 Check record type in xTransport
Prepare for IPv6-only support by the way

Fixes #189
2018-02-26 14:50:01 +01:00
Frank Denis 6000f5073a 2.0.4 2018-02-23 17:08:13 +01:00
Frank Denis 8d4f6770e5 Bump 2018-02-22 23:55:03 +01:00
Frank Denis ebd55ba954 Bump 2018-02-21 00:23:11 +01:00
Frank Denis 547e444afd Service installation: bail out with a meaningful error message on unsupported platforms
Fixes #154
2018-02-20 00:34:06 +01:00
Frank Denis 81ba5ef2c6 Update ChangeLog 2018-02-19 18:42:29 +01:00
Frank Denis 16c75172ad Remove "starting"
Fixes #97
2018-02-06 19:33:58 +01:00
Frank Denis 453299e49a 2.0.0 final 2018-02-06 16:13:06 +01:00
Frank Denis 88434fc39f Prepare support for multiple load balancing strategies 2018-02-04 21:13:54 +01:00
Frank Denis a4b70fa56d Last released candidate, so people can test cloaking 2018-02-04 12:00:24 +01:00
Frank Denis 588d8dabde rc2 2018-02-03 12:53:43 +01:00
Frank Denis f513ab21fa Check if the config file exists from the current directory
Try the executable directory if it fails

Then, go to that config file directory no matter what

Fixes #80
2018-02-03 10:46:47 +01:00
Frank Denis 6efd904b9f 2.0.0 release candidate 2018-02-01 10:26:14 +01:00
Frank Denis f6571af24f Nits 2018-01-31 08:38:22 +01:00
Frank Denis c39197f7b2 Prepare for beta12 2018-01-30 15:58:13 +01:00
Frank Denis ecaf18f614 Use a fallback resolver if the local DNS configuration doesn't work
This should fix all chicken-and-egg issues
2018-01-30 15:47:39 +01:00
Frank Denis 24c21d5eb2 Start moving things to a custom transport 2018-01-30 13:29:47 +01:00
Frank Denis c2494cfc40 Make file paths relative to the path of the configuration file 2018-01-29 23:57:20 +01:00
Frank Denis b6e5f55870 Move the proxy struct to its own file 2018-01-29 23:47:04 +01:00
Frank Denis 479d9d14fd Reduce verbosity 2018-01-29 04:03:59 +01:00
Frank Denis cf12fb170a Use a custom transport and a host->ip cache
maybe
Fixes #45
2018-01-29 03:58:39 +01:00
Frank Denis 9eeb68f3a1 beta11 2018-01-27 18:18:28 +01:00
Frank Denis be1e99ea32 DoH: send a dummy query before measuring the RTT to ignore the handshake 2018-01-27 16:48:22 +01:00
Frank Denis 50d0c0449f Initial support for DNS-over-HTTP2 -- Yes, it works with Google. 2018-01-27 15:26:08 +01:00
Frank Denis ff5bba1ba4 up 2018-01-25 15:55:27 +01:00
Frank Denis 996d9be4e3 Improve message if /proc/self/exe doesn't exist (?)
Fixes #26
2018-01-24 16:55:28 +01:00
Frank Denis 732c451dd4 Add max_clients to cap the maximum number of client queries 2018-01-24 16:51:26 +01:00
Frank Denis 94f9c14ad7 Only attempt to use systemd on linux
Remove plan9 builds
2018-01-24 15:14:48 +01:00
Frank Denis c184ce1a03 systemd support
How does it work? I don't know. Does it work? I don't know.
Would I encourage its use? No.
2018-01-24 14:44:32 +01:00
Frank Denis 0ce20518db Make the UDP and TCP listeners more generic 2018-01-24 14:22:56 +01:00
Frank Denis 1bcb791270 up 2018-01-24 14:13:29 +01:00
Frank Denis 3dcedac390 beta8 2018-01-21 19:52:51 +01:00
Frank Denis 8bcba92f97 Add an undocumented option to ignore cert timestamps 2018-01-21 18:10:38 +01:00
Frank Denis 05e07e8b69 Add a simple built-in DNS client for testing 2018-01-21 18:02:32 +01:00
Frank Denis d9b5625226 IP blocking 2018-01-21 16:07:44 +01:00