refactor mac service

This commit is contained in:
rustdesk committed 2022-01-17 12:05:06 +08:00
1 parent a12f24bf16
commit 5af1258454
22 files changed
+173 -171

No files matched your search

+9
View File
@@ -445,6 +445,15 @@ async fn _check_software_update() -> hbb_common::ResultType<()> {
Ok(())
}
#[cfg(target_os = "macos")]
pub fn get_full_name() -> String {
format!(
"{}.{}",
hbb_common::config::ORG,
hbb_common::config::APP_NAME,
)
}
pub fn is_ip(id: &str) -> bool {
hbb_common::regex::Regex::new(r"^\d+\.\d+\.\d+\.\d+$")
.unwrap()