2018-01-24 14:44:32 +01:00
|
|
|
[Unit]
|
2018-03-26 20:48:22 +02:00
|
|
|
Description=DNSCrypt-proxy socket
|
|
|
|
Documentation=https://github.com/jedisct1/dnscrypt-proxy/wiki
|
2018-03-24 19:05:01 +01:00
|
|
|
Before=nss-lookup.target
|
|
|
|
Wants=nss-lookup.target
|
2018-01-24 14:44:32 +01:00
|
|
|
|
|
|
|
[Socket]
|
2018-04-28 22:29:16 +02:00
|
|
|
## Listen on TCP socket.
|
2018-01-24 14:44:32 +01:00
|
|
|
ListenStream=127.0.0.1:53
|
2018-04-28 22:29:16 +02:00
|
|
|
|
|
|
|
## Listen on UDP socket.
|
2018-01-24 14:44:32 +01:00
|
|
|
ListenDatagram=127.0.0.1:53
|
2018-04-28 22:29:16 +02:00
|
|
|
|
|
|
|
## Below options are valid only for TCP socket.
|
|
|
|
## Applying them to UDP socket will result in error which can be ignored.
|
2018-01-24 14:44:32 +01:00
|
|
|
NoDelay=true
|
|
|
|
DeferAcceptSec=1
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sockets.target
|