mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-11 15:01:02 +03:00
Update common.rs (#15924)
This commit is contained in:
@@ -1088,7 +1088,7 @@ fn get_api_server_(api: String, custom: String) -> String {
|
|||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_public(url: &str) -> bool {
|
pub fn is_public(url: &str) -> bool {
|
||||||
let url = url.to_ascii_lowercase();
|
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 {
|
pub fn get_udp_punch_enabled() -> bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user