Update IPv6's priority value

This commit is contained in:
redphx 2024-05-01 18:31:53 +07:00
parent 594c9d3f2e
commit 29a1fa9f10

View File

@ -78,7 +78,7 @@ function updateIceCandidates(candidates: any, options: any) {
lst.forEach(item => { lst.forEach(item => {
item.foundation = foundation; item.foundation = foundation;
item.priority = (foundation == 1) ? 10000 : 1; item.priority = (foundation == 1) ? 2130706431 : 1;
newCandidates.push(newCandidate(`a=candidate:${item.foundation} 1 UDP ${item.priority} ${item.ip} ${item.port} ${item.the_rest}`)); newCandidates.push(newCandidate(`a=candidate:${item.foundation} 1 UDP ${item.priority} ${item.ip} ${item.port} ${item.the_rest}`));
++foundation; ++foundation;