agent: Only try to use the address of the same family to connect to TURN
authorJakub Adam <jakub.adam@ktknet.cz>
Sun, 2 Apr 2017 15:08:07 +0000 (17:08 +0200)
committerPhilip Withnall <withnall@endlessm.com>
Mon, 3 Apr 2017 09:48:30 +0000 (10:48 +0100)
commit4c79b8659da1a627463b5b66c56ddf863801aaab
tree355adf8b14cfcd3ff407c56c5f1e16ba4378f387
parent3c20e78fcd653a2db67f03c16d270beda2763a30
agent: Only try to use the address of the same family to connect to TURN

Using a IPv6 local address to connect to a IPv4 relay just creates an
extra discovery attempt that will not provide something useful.

This commit fixes another place of TURN discovery creation which was
omitted in fc0d3744ebc03f8137866170594968ba61e6be30. In my case it cuts
down up to ~15 seconds from candidate gathering phase, making it almost
instantaneous.

Reviewed-by: Olivier CrĂȘte <olivier.crete@collabora.com>
Differential Revision: https://phabricator.freedesktop.org/D1709
agent/agent.c