Do not compare scope for IPv6 address when scope is 0
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 5 May 2015 19:00:30 +0000 (15:00 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 5 May 2015 19:00:30 +0000 (15:00 -0400)
commit91a7b9324244844baf35d8fcef019a4ea3872d30
treeabc4ec0d941ffbf24bbee874142fa55d3c146952
parent93862c1e1940618e06143d4788f54bffd4d1c5da
Do not compare scope for IPv6 address when scope is 0

This caused issues with thinking local host candidates were peer-reflexive
candidates because the nice_address_equal would fail since the scope
would be 6 (or some other value) but locally created NiceAddress from
a stun response would have the scope set to 0.
We ignore the scope when comparing ipv6 candidates when scope is 0
to avoid these kinds of issues.
Thanks to ikonst_ for finding these issues
agent/address.c