ice: fix comment about relay preference

BUG=webrtc:13195

Change-Id: I86b0ff259cec7d2dc95ba5d7ae1022aca4dcb01c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/233260
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Reviewed-by: Jonas Oreland <jonaso@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35123}
This commit is contained in:
Philipp Hancke
2021-09-28 23:19:47 +02:00
committed by WebRTC LUCI CQ
parent d4aa3a3196
commit ee4c930b4e

View File

@ -101,7 +101,9 @@ uint32_t Candidate::GetPriority(uint32_t type_preference,
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
// NIC Type - Type of the network adapter e.g. 3G/Wifi/Wired. // NIC Type - Type of the network adapter e.g. 3G/Wifi/Wired.
// Addr Pref - Address preference value as per RFC 3484. // Addr Pref - Address preference value as per RFC 3484.
// local preference = (NIC Type << 8 | Addr_Pref) - relay preference. // local preference = (NIC Type << 8 | Addr_Pref) + relay preference.
// The relay preference is based on the number of TURN servers, the
// first TURN server gets the highest preference.
int addr_pref = IPAddressPrecedence(address_.ipaddr()); int addr_pref = IPAddressPrecedence(address_.ipaddr());
int local_preference = int local_preference =