candidate: fix local preferences of udp candidates
authorFabrice Bellet <fabrice@bellet.info>
Wed, 12 Feb 2020 14:40:52 +0000 (15:40 +0100)
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>
Mon, 2 Mar 2020 16:22:18 +0000 (16:22 +0000)
udp candidates failed to call nice_candidate_ip_local_preferences()
and were all given the same local preference priority.

agent/candidate.c

index b6e7012..c1f9dec 100644 (file)
@@ -215,7 +215,7 @@ nice_candidate_ice_local_preference (const NiceCandidate *candidate)
         break;
       case NICE_CANDIDATE_TRANSPORT_UDP:
       default:
-        return 1;
+        direction_preference = 1;
         break;
     }