]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
systemd: Add FreeBind=true to kresd.socket
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 20 Oct 2017 14:43:21 +0000 (10:43 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 20 Oct 2017 14:43:21 +0000 (10:43 -0400)
This allows the socket to be bound before the network interface comes
up, which is preferable to having a race between the interface coming
up and the socket being bound.

systemd/kresd.socket

index 7d8953c233416474d5a082d78f9541a53cdefa4b..77dcfcfb406d38f55bf656844119244cbbbea47b 100644 (file)
@@ -8,6 +8,7 @@ ListenStream=[::1]:53
 ListenDatagram=[::1]:53
 ListenStream=127.0.0.1:53
 ListenDatagram=127.0.0.1:53
+FreeBind=true
 
 [Install]
 WantedBy=sockets.target