mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-18 18:31:02 +03:00
fix: preserve WebRTC transport preference
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user