From 29a1fa9f10ec250602533b260b06aa875e879204 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Wed, 1 May 2024 18:31:53 +0700 Subject: [PATCH] Update IPv6's priority value --- src/utils/network.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/network.ts b/src/utils/network.ts index 4ccef24..8702aa9 100644 --- a/src/utils/network.ts +++ b/src/utils/network.ts @@ -78,7 +78,7 @@ function updateIceCandidates(candidates: any, options: any) { lst.forEach(item => { 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}`)); ++foundation;