Update common.rs (#15924)

This commit is contained in:
RustDesk
2026-08-21 00:52:31 +08:00
committed by GitHub
parent f1a06f6765
commit 798b73beb1
+1 -1
View File
@@ -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 {