Let default systemd socket listen on both IPv4 and IPv6 (#257)

* Let default systemd socket listen on both IPv4 and IPv6

Setting listen_addresses = [] in config will listen on systemd socket, but by previous systemd socket config it would only listen on IPv4 127.0.0.1:53 without IPv6. This change fixes it.

* Update dnscrypt-proxy.socket
This commit is contained in:
Dhoulmagus 2018-03-24 22:01:27 +08:00 committed by Frank Denis
parent 0026a20e08
commit a95c7b729b
1 changed files with 2 additions and 0 deletions

View File

@ -3,7 +3,9 @@ Description=dnscrypt-proxy listening socket
[Socket] [Socket]
ListenStream=127.0.0.1:53 ListenStream=127.0.0.1:53
ListenStream=[::1]:53
ListenDatagram=127.0.0.1:53 ListenDatagram=127.0.0.1:53
ListenDatagram=[::1]:53
NoDelay=true NoDelay=true
DeferAcceptSec=1 DeferAcceptSec=1