1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-15 23:00:18 +01:00
dnscrypt-proxy/systemd/dnscrypt-proxy.socket
Rosanna4 85f05ff9e8 systemd: Enhance documentation (#414)
* systemd: Clarify dnscrypt-proxy.socket documentation

Explain which warnings are expected.

* systemd: Update documentation

TCP_NODELAY warning can be ignored. Fix explanation of ProtectHome=yes behavior.
2018-04-29 17:18:26 +02:00

24 lines
566 B
SYSTEMD

[Unit]
Description=DNSCrypt-proxy socket
Documentation=https://github.com/jedisct1/dnscrypt-proxy/wiki
Before=nss-lookup.target
Wants=nss-lookup.target
[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