From: Guus Sliepen Date: Sun, 5 Jun 2016 13:23:07 +0000 (+0200) Subject: Preserve IPv6 scope_id in edges. X-Git-Tag: release-1.0.29~10 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=48e353e9fdf189c4fd5fa7ebc76a72535b4f6632;hp=48e353e9fdf189c4fd5fa7ebc76a72535b4f6632 Preserve IPv6 scope_id in edges. When creating an edge after authenticating a peer, we copy the address used for the TCP connection, but change the port to that used for UDP. But the way we did it discarded the scope_id for IPv6 addresses. This prevented UDP communication from working correctly when connecting to a peer on the same LAN using an IPv6 link-local address. Thanks to Rafał Leśniak for pointing out this issue. ---