mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-05 16:02:17 +00:00
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:
commit
053f94eb2f
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user