From 45ecfcbeb3179aeb9d0fe5898e4856cfea7d6a9e Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Fri, 21 Apr 2023 18:09:27 -0700 Subject: [PATCH] fix host option --- src-tauri/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 468fb3a..2cc1b9e 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -114,7 +114,7 @@ async fn parse_args(inp: &Vec) -> Result { ); } - if !args.value_of::("host")?.is_empty() { + if args.value_of::("host").is_ok() && !args.value_of::("host")?.is_empty() { let host = args.value_of::("host")?; set_proxy_addr(host); } @@ -224,7 +224,7 @@ fn main() -> Result<(), ArgsError> { disconnect(); // Always unpatch game upon closing the program - patch::unpatch_game(); + block_on(patch::unpatch_game()); Ok(()) }