Frank Denis
d58d5ffbf6
Oh, Google updated their servers, and "body" is not required any more!
2018-10-03 18:33:10 +02:00
Frank Denis
8de13842ae
Bump
2018-10-03 18:26:54 +02:00
Frank Denis
bfca70000e
A note about pidfile
2018-10-03 18:17:39 +02:00
Frank Denis
772c8d0e6c
user.Lookup() may not be available on some platforms
...
So, explain what's going on, support numeric ids, try to be a bit
more friendly to these platforms
2018-10-03 17:57:39 +02:00
Frank Denis
a937a184ca
Try to preserve edns0 options in client queries
2018-10-03 17:10:52 +02:00
Frank Denis
fdc2f3c474
Revert "Keep the original OPT record before setting the payload size"
...
This reverts commit d49a7b462d
.
2018-10-03 16:41:37 +02:00
Frank Denis
5cb7d8df35
Remove Quad9 example until they remove prefixes
2018-10-03 16:36:23 +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
a74c0fedeb
Of course, Linux has to do things differently
2018-10-03 16:33:33 +02:00
Frank Denis
d49a7b462d
Keep the original OPT record before setting the payload size
...
Maybe
fixes #592
2018-10-03 16:24:41 +02:00
Frank Denis
77f5c41b21
Forget about the supervisor, and use syscall.Exec()
2018-10-03 16:05:07 +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
0ff066c80b
Revert "Add unix to the pledge promises"
...
This reverts commit 7734cc9d2a
.
2018-08-23 00:44:21 +02:00
Frank Denis
7734cc9d2a
Add unix to the pledge promises
...
Required for writing to syslog.
Reported by @eau-u4f, thanks!
2018-08-15 17:58:07 +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
9b5948d697
Do not ignore ReadPrefixed() errors
2018-07-09 15:49:36 +02:00
Frank Denis
887f6ac299
Log invalid stamps
2018-07-09 15:47:59 +02:00
Frank Denis
dc602512ff
Don't call PledgeChild() too early
2018-07-07 21:03:08 +02:00
Frank Denis
127d4f0e68
Merge branch 'master' of github.com:jedisct1/dnscrypt-proxy
2018-07-07 18:56:06 +00:00
Frank Denis
17e07d80bb
Fix pledge() usage
2018-07-07 20:50:44 +02:00
Frank Denis
35e4d36f67
Add sys/unix for pledge
2018-07-07 20:39:04 +02:00
Frank Denis
1f54214821
pledge() on OpenBSD
2018-07-07 20:27:09 +02:00
Frank Denis
09baa3c40b
Store the userName value again
2018-07-07 17:58:37 +00:00
Frank Denis
4dc756be4d
Error out if systemd sockets are used with the user_name option
2018-07-07 19:44:11 +02:00
Frank Denis
1019428ca0
username -> user_name
...
in case we want to add user_group and whatnot.
Remove the command-line option as it hides the caveats documented
in the configuration file.
Remove TODO. TODO statements always remain in that state forever.
2018-07-07 17:39:33 +02:00
Frank Denis
6cb43f8e4d
Of course, dropping privileges breaks with systemd sockets
2018-07-07 15:21:21 +00:00
Frank Denis
9345958d16
Better description of what username does
2018-07-05 18:12:46 +02:00
Frank Denis
c73e95256d
Implement an offline mode
...
Fixes #528
2018-07-05 18:05:24 +02:00
Frank Denis
73a43b31b9
Automatically restart after unexpected errors
2018-07-01 23:06:28 +02:00
Frank Denis
f9b6994fd2
An easier way to remove args[0]
2018-07-01 22:48:50 +02:00
Frank Denis
cc327fdc48
OPT records don't have any class
2018-06-26 15:46:31 +02:00
Frank Denis
97f604670c
Don't update OPT records
...
Fixes #527
2018-06-26 08:24:13 +02:00
John Spurlock
74093a65a2
Quick typo fix in example config. ( #511 )
2018-06-20 00:55:28 +02:00
Frank Denis
a1c8012fc6
Error handling when TCP connections fail
2018-06-18 19:19:53 +02:00
Frank Denis
2cb5bb5110
Merge branch 'master' of github.com:jedisct1/dnscrypt-proxy
...
* 'master' of github.com:jedisct1/dnscrypt-proxy:
Note that Windows doesn't support username option (#494 )
2018-06-14 19:14:24 +02:00
Frank Denis
34e78a2446
Don't create a new session; it breaks `-service stop`.
2018-06-14 19:13:52 +02:00
Sebastian Schmidt
8f2972845d
Note that Windows doesn't support username option ( #494 )
2018-06-14 09:35:13 +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
09e39c785a
Keep the process running in foreground to avoid a breaking change/allow monitoring
...
This currently doesn't replace the previous process. Maybe there is a way to achieve
this in Go. Need to look closer at os.exec
Also start-child -> child
2018-06-13 17:24:16 +02:00
Frank Denis
fe0aa52fba
Make description more accessible in the example configuration file
...
Also don't enable this by default, as "nobody" may not exist everywhere
2018-06-13 16:54:57 +02:00
Sebastian Schmidt
aab7e6380f
Drop privileges with exec ( #467 )
...
* Drop privileges with exec and SysProcAttr
* Fix windows build
* Fix passing logfile fd
2018-06-13 16:52:41 +02:00
Frank Denis
ae54a7aafc
Revert "Do not mention systemd activation until #480 is solved"
...
This reverts commit 066345123b
.
2018-06-13 16:49:57 +02:00
dwimmer
b498e6655e
Fix systemd socket connections ( #492 )
...
Upstream systemd go library broke use of TCP and UDP sockets at the same time.
Changed to use lower level API to work around this. Also improved logging of
systemd socket connections to include systemd unit file name and address.
2018-06-13 16:49:32 +02:00
Frank Denis
066345123b
Do not mention systemd activation until #480 is solved
2018-06-08 06:35:47 +02:00
Frank Denis
9135efcaec
Use net.Conn everywhere
...
I don't know how to use a TCPConn as a Conn.
2018-06-06 19:06:44 +02:00
Frank Denis
7866e6da51
Bump
2018-06-06 16:14:31 +02:00