From: Guus Sliepen Date: Tue, 13 Nov 2012 14:05:41 +0000 (+0100) Subject: Send broadcast packets using a random socket, and properly support IPv6. X-Git-Tag: release-1.1pre4~22 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=e8bf81794f412b27261be0f2aa4eb287352041af;hp=e8bf81794f412b27261be0f2aa4eb287352041af;p=tinc Send broadcast packets using a random socket, and properly support IPv6. Before it would always use the first socket, and always send an IPv4 broadcast packet. That works fine in a lot of situations, but it is better to try all sockets, and to send IPv6 packets on IPv6 sockets. This is especially important for users that are on IPv6-only networks or that have multiple physical network interfaces, although in the latter case it probably requires them to use the ListenAddress variable to create a separate socket for each interface. ---