From 0b5cf9ca567d76cd89effc05467fb7a22536ee11 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 5 Aug 2026 19:37:57 +0800 Subject: [PATCH] fix: carry switch_code through WebRTC relay fallbacks after rebase The rebase onto master (switch-code feature) added an 8th request_relay parameter; pass the interface's switch code from both WebRTC->relay fallback paths so a role-swap session survives the fallback. Also drop a duplicate bindgen 0.72.1 entry the Cargo.lock merge produced. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01ExUfAkYbq8UC9pQCiLy8TQ --- Cargo.lock | 18 ------------------ src/client.rs | 2 ++ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 09e13e45d..dc6cf347f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -753,24 +753,6 @@ dependencies = [ "syn 2.0.98", ] -[[package]] -name = "bindgen" -version = "0.72.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895" -dependencies = [ - "bitflags 2.9.1", - "cexpr", - "clang-sys", - "itertools 0.12.1", - "proc-macro2 1.0.93", - "quote 1.0.36", - "regex", - "rustc-hash 2.1.1", - "shlex", - "syn 2.0.98", -] - [[package]] name = "bindgen" version = "0.72.1" diff --git a/src/client.rs b/src/client.rs index a143cf7da..9070a0482 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1070,6 +1070,7 @@ impl Client { &key, &token, conn_type, + &interface.get_switch_code(), ) .await .map_err(|relay_e| { @@ -1405,6 +1406,7 @@ impl Client { key, token, conn_type, + &interface.get_switch_code(), ) .await {