Only intercept game traffic

Bump version
This commit is contained in:
Thoronium
2023-04-05 21:06:43 -06:00
parent bbd18d33e9
commit 33ddc36741
3 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "cultivation",
"version": "1.0.23",
"version": "1.0.24",
"private": true,
"dependencies": {
"@tauri-apps/api": "^1.0.0-rc.5",

View File

@@ -86,7 +86,13 @@ impl HttpHandler for ProxyHandler {
}
async fn should_intercept(&mut self, _ctx: &HttpContext, _req: &Request<Body>) -> bool {
true
let uri = _req.uri().to_string();
if uri.contains("hoyoverse.com") || uri.contains("mihoyo.com") || uri.contains("yuanshen.com") {
true
} else {
false
}
}
}

View File

@@ -7,7 +7,7 @@
},
"package": {
"productName": "Cultivation",
"version": "1.0.23"
"version": "1.0.24"
},
"tauri": {
"allowlist": {