Merge pull request #3 from rayyume/fix/webrtc-public-host-candidate

fix(phone): preserve fixed WebRTC UDP port in public ICE candidate
This commit is contained in:
yibaiba authored and GitHub committed 2026-09-01 13:04:37 +08:00
commit 053f94eb2f
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ func setWebRTCPublicHost(settings *webrtc.SettingEngine, value string, lookup pu
}
if err := settings.SetICEAddressRewriteRules(webrtc.ICEAddressRewriteRule{
External: publicIPs,
AsCandidateType: webrtc.ICECandidateTypeSrflx,
AsCandidateType: webrtc.ICECandidateTypeHost,
Mode: webrtc.ICEAddressRewriteAppend,
}); err != nil {
return fmt.Errorf("phone: configure WebRTC public host: %w", err)