summaryrefslogtreecommitdiff
blob: ea38c90e8a5d395dc09e694d1bbfd76108b716a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=DNSCrypt-proxy socket
Documentation=https://github.com/jedisct1/dnscrypt-proxy/wiki

[Socket]
## Listen on TCP socket.
ListenStream=127.0.0.1:53

## Listen on UDP socket.
ListenDatagram=127.0.0.1:53

## Below options are valid only for TCP socket.
## Applying them to UDP socket will result in warnings:
## TCP_NODELAY failed: Protocol not available
## TCP_DEFER_ACCEPT failed: Protocol not available
## Those can be safely ignored.
NoDelay=true
DeferAcceptSec=1

[Install]
WantedBy=sockets.target