Skip to content

Commit

Permalink
fix: import url error (zzzgydi#543)
Browse files Browse the repository at this point in the history
use rustls instead of depending user's system tls
  • Loading branch information
yettera765 authored May 5, 2023
1 parent 8cf8fa7 commit 3eeaee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ delay_timer = "0.11.1"
parking_lot = "0.12.0"
tokio = { version = "1", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
reqwest = { version = "0.11", features = ["json"] }
reqwest = { version = "0.11", features = ["json","rustls-tls"] }
tauri = { version = "1.1.1", features = ["global-shortcut-all", "process-all", "shell-all", "system-tray", "updater", "window-all"] }
tauri-runtime-wry = { version = "0.12" }
window-vibrancy = { version = "0.3.0" }
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/config/prfitem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ impl PrfItem {
let self_proxy = opt_ref.map_or(false, |o| o.self_proxy.unwrap_or(false));
let user_agent = opt_ref.map_or(None, |o| o.user_agent.clone());

let mut builder = reqwest::ClientBuilder::new().no_proxy();
let mut builder = reqwest::ClientBuilder::new().use_rustls_tls().no_proxy();

// 使用软件自己的代理
if self_proxy {
Expand Down

0 comments on commit 3eeaee1

Please sign in to comment.