discovery: use the address of a relayed candidate for its foundation
authorFabrice Bellet <fabrice@bellet.info>
Thu, 16 Apr 2020 18:09:59 +0000 (20:09 +0200)
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>
Mon, 14 Dec 2020 19:35:52 +0000 (19:35 +0000)
commit183142a7c2b9b4c6214b3c41a449672e21cce092
tree68a7b8d5f523fa48f7a3bb1c45de9a912b092efa
parentcd3803255dde39f75d63d73bbe71d4866d498ec3
discovery: use the address of a relayed candidate for its foundation

According to the RFC, the base address of a relayed candidate is that
candidate itself. This precision is interesting and not just
anecdotical, since it allows the relayed candidates from the same turn
server to share the same foundation, and to not be tested concurrently.

However, since the base address in its current form is required to
compute a unique priority, we choose the keep the
candidate->base_address for this purpose, and to apply the RFC
consequence about relay candidate base being equal to the candidate
itself in the foundation assignment instead.
agent/discovery.c