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
1 changed files with 2 additions and 0 deletions

View File

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