Skip to content

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

fix ci

rustdesk6720bb9f6bc8
diff --git a/src/platform/windows.rs b/src/platform/windows.rs
index fc123fbe7..1ec4bcb7d 100644
--- a/src/platform/windows.rs
+++ b/src/platform/windows.rs
@@ -2,7 +2,7 @@ use super::{CursorData, ResultType};
use crate::common::PORTABLE_APPNAME_RUNTIME_ENV_KEY;
use crate::{
ipc,
- license::*,
+ custom_server::*,
privacy_mode::win_topmost_window::{self, WIN_TOPMOST_INJECTED_PROCESS_EXE},
};
use hbb_common::libc::{c_int, wchar_t};
@@ -1468,13 +1468,13 @@ fn get_reg_of(subkey: &str, name: &str) -> String {
"".to_owned()
}
-pub fn get_license_from_exe_name() -> ResultType<License> {
+pub fn get_license_from_exe_name() -> ResultType<CustomServer> {
let mut exe = std::env::current_exe()?.to_str().unwrap_or("").to_owned();
// if defined portable appname entry, replace original executable name with it.
if let Ok(portable_exe) = std::env::var(PORTABLE_APPNAME_RUNTIME_ENV_KEY) {
exe = portable_exe;
}
- get_license_from_string(&exe)
+ get_custom_server_from_string(&exe)
}
#[inline]
@@ -2509,8 +2509,8 @@ pub fn alloc_console() {
}
}
-fn get_license() -> Option<License> {
- let mut lic: License = Default::default();
+fn get_license() -> Option<CustomServer> {
+ let mut lic: CustomServer = Default::default();
if let Ok(tmp) = get_license_from_exe_name() {
lic = tmp;
} else {