Skip to content

Commit 9f81771

Browse files
authored
fix(client): stop retrying on restricted mobile access errors (rustdesk#14797)
Treat "Access to mobile devices is restricted in your country" as a non-retriable connection error so the error dialog does not trigger reconnect attempts. Signed-off-by: 21pages <sunboeasy@gmail.com>
1 parent 091f2c6 commit 9f81771

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3870,6 +3870,7 @@ pub fn check_if_retry(msgtype: &str, title: &str, text: &str, retry_for_relay: b
38703870
&& !text.to_lowercase().contains("resolve")
38713871
&& !text.to_lowercase().contains("mismatch")
38723872
&& !text.to_lowercase().contains("manually")
3873+
&& !text.to_lowercase().contains("restricted")
38733874
&& !text.to_lowercase().contains("not allowed")))
38743875
}
38753876

0 commit comments

Comments
 (0)