Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Update common.rs (#15924)

RustDesk798b73beb120
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 {