From 798b73beb120d333902e4ff87a5e7587f343320c Mon Sep 17 00:00:00 2001 From: RustDesk <71636191+rustdesk@users.noreply.github.com> Date: Fri, 21 Aug 2026 00:52:31 +0800 Subject: [PATCH] Update common.rs (#15924) --- src/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.rs b/src/common.rs index 9b22cbca2..6a8d39e27 100644 --- a/src/common.rs +++ b/src/common.rs @@ -1088,7 +1088,7 @@ fn get_api_server_(api: String, custom: String) -> String { #[inline] pub fn is_public(url: &str) -> bool { let url = url.to_ascii_lowercase(); - url.contains("rustdesk.com/") || url.ends_with("rustdesk.com") + url.contains(".rustdesk.com") } pub fn get_udp_punch_enabled() -> bool {