From e3cdeef21225975ca504a32d5c570109bdc59e68 Mon Sep 17 00:00:00 2001 From: Crafterzman Date: Fri, 1 Jul 2022 22:06:05 -0700 Subject: [PATCH] Fix HWID Lock on non Win32 This function call returns the HWID regardless of the operating system. See: https://docs.rs/machine_uuid/latest/machine_uuid/fn.get.html --- src/keyauth.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/keyauth.rs b/src/keyauth.rs index 329f0a2..d94c86c 100644 --- a/src/keyauth.rs +++ b/src/keyauth.rs @@ -518,11 +518,7 @@ impl KeyauthApi { } fn get_hwid() -> String { - if cfg!(windows) { - machine_uuid::get() - } else { - "None".to_string() - } + machine_uuid::get() } fn gen_init_iv() -> String {