Don't add pairs when the remote port is 0 (as can be when a remote cand is an active TCP cand).

This commit is contained in:
boris 2014-09-03 14:34:26 +00:00
parent caea84ac07
commit e4c914b943
2 changed files with 4 additions and 2 deletions

View File

@ -387,7 +387,8 @@ public class Component
//pair each of the new remote candidates with each of our locals
for(RemoteCandidate remoteCnd : remoteUpdateCandidates)
{
if(localCnd.canReach(remoteCnd))
if(localCnd.canReach(remoteCnd)
&& remoteCnd.getTransportAddress().getPort() != 0)
{
// A single LocalCandidate might be/become connected
// to more more than one remote address, and that's ok

View File

@ -385,7 +385,8 @@ public class IceMediaStream
for(RemoteCandidate remoteCnd : remoteCnds)
{
if(localCnd.canReach(remoteCnd))
if(localCnd.canReach(remoteCnd)
&& remoteCnd.getTransportAddress().getPort() != 0)
{
CandidatePair pair = new CandidatePair(localCnd,
remoteCnd);