fix: preserve WebRTC transport preference

This commit is contained in:
rustdesk
2026-07-22 17:45:26 +08:00
parent c34f29dd30
commit 86c4ddbb1e
3 changed files with 120 additions and 41 deletions

View File

@@ -697,7 +697,7 @@ impl RendezvousMediator {
) -> ResultType<String> {
let mut stream =
WebRTCStream::new(&ph.webrtc_sdp_offer, force_relay, CONNECT_TIMEOUT).await?;
let answer = match stream.get_local_endpoint().await {
let answer = match stream.get_local_endpoint_trickle().await {
Ok(answer) => answer,
Err(e) => {
// Close the freshly-created pc so a failure here doesn't leak it in SESSIONS.