From b8c195675cbb8779a753ff0f065cb83a4c8aea4a Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Mon, 16 May 2022 19:33:50 -0700 Subject: [PATCH] fix url format --- src-tauri/src/proxy.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/proxy.rs b/src-tauri/src/proxy.rs index 41ac4c6..e290e91 100644 --- a/src-tauri/src/proxy.rs +++ b/src-tauri/src/proxy.rs @@ -39,7 +39,8 @@ impl HttpHandler for ProxyHandler { // Check URI against constraints. if path.contains("hoyoverse.com") || path.contains("mihoyo.com") || path.contains("yuanshen.com") { - uri = ("127.0.0.1".to_string() + uri.path()).parse::().unwrap(); + println!("uri path: {}", uri.path()); + uri = format!("https://127.0.0.1:443{}", uri.path()).parse::().unwrap(); } let builder = Request::builder()