From 5d2995c2952218f039b40f083a3eddddfa88272d Mon Sep 17 00:00:00 2001 From: Fabrice Bellet Date: Wed, 12 Feb 2020 15:40:52 +0100 Subject: [PATCH] candidate: fix local preferences of udp candidates udp candidates failed to call nice_candidate_ip_local_preferences() and were all given the same local preference priority. --- agent/candidate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/candidate.c b/agent/candidate.c index b6e7012..c1f9dec 100644 --- a/agent/candidate.c +++ b/agent/candidate.c @@ -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; } -- 2.7.4