mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-02-17 14:07:28 +08:00
@@ -1268,8 +1268,8 @@ impl Connection {
|
||||
|
||||
#[cfg(not(target_os = "android"))]
|
||||
{
|
||||
pi.hostname = whoami::hostname();
|
||||
pi.platform = whoami::platform().to_string();
|
||||
pi.hostname = hbb_common::whoami::hostname();
|
||||
pi.platform = hbb_common::whoami::platform().to_string();
|
||||
}
|
||||
#[cfg(target_os = "android")]
|
||||
{
|
||||
@@ -1314,13 +1314,13 @@ impl Connection {
|
||||
#[cfg(any(target_os = "windows", feature = "unix-file-copy-paste"))]
|
||||
{
|
||||
let is_both_windows = cfg!(target_os = "windows")
|
||||
&& self.lr.my_platform == whoami::Platform::Windows.to_string();
|
||||
&& self.lr.my_platform == hbb_common::whoami::Platform::Windows.to_string();
|
||||
#[cfg(feature = "unix-file-copy-paste")]
|
||||
let is_unix_and_peer_supported = crate::is_support_file_copy_paste(&self.lr.version);
|
||||
#[cfg(not(feature = "unix-file-copy-paste"))]
|
||||
let is_unix_and_peer_supported = false;
|
||||
let is_both_macos = cfg!(target_os = "macos")
|
||||
&& self.lr.my_platform == whoami::Platform::MacOS.to_string();
|
||||
&& self.lr.my_platform == hbb_common::whoami::Platform::MacOS.to_string();
|
||||
let is_peer_support_paste_if_macos =
|
||||
crate::is_support_file_paste_if_macos(&self.lr.version);
|
||||
let has_file_clipboard = is_both_windows
|
||||
@@ -4279,7 +4279,7 @@ mod raii {
|
||||
) -> Self {
|
||||
let printer = conn_type == crate::server::AuthConnType::Remote
|
||||
&& crate::is_support_remote_print(&lr.version)
|
||||
&& lr.my_platform == whoami::Platform::Windows.to_string();
|
||||
&& lr.my_platform == hbb_common::whoami::Platform::Windows.to_string();
|
||||
AUTHED_CONNS.lock().unwrap().push(AuthedConn {
|
||||
conn_id,
|
||||
conn_type,
|
||||
|
||||
Reference in New Issue
Block a user