Listen on two different sockets for ipv6 and ipv4

Option BindIPv6Only is needed to restrict ipv6 to sending IPv6 packets
only, without it IPv6 socket can be used to send and receive packet to
and from an IPv6 address or an IPv4-mapped IPv6 address.
This commit is contained in:
Aleksei Fedotov 2016-05-11 00:15:33 +03:00
parent 4987aa536d
commit 2edb879845

View File

@ -3,6 +3,8 @@ Description=Iodine socket
[Socket]
ListenDatagram=53
ListenDatagram=0.0.0.0:53
BindIPv6Only=ipv6-only
[Install]
WantedBy=sockets.target