Preserve IPv6 scope_id in edges.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 5 Jun 2016 12:47:21 +0000 (14:47 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 5 Jun 2016 12:47:21 +0000 (14:47 +0200)
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.


No differences found