update machine-uid for x86 sciter access x64 machine id

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-07-02 17:13:23 +08:00
parent 6f3123bf02
commit c42fbe3d45
6 changed files with 13 additions and 7 deletions

View File

@@ -1037,7 +1037,12 @@ pub async fn change_id_shared_(id: String, old_id: String) -> &'static str {
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]
let uuid = Bytes::from(machine_uid::get().unwrap_or("".to_owned()).as_bytes().to_vec());
let uuid = Bytes::from(
hbb_common::machine_uid::get()
.unwrap_or("".to_owned())
.as_bytes()
.to_vec(),
);
#[cfg(any(target_os = "android", target_os = "ios"))]
let uuid = Bytes::from(hbb_common::get_uuid());