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