add: Http proxy request client

This commit is contained in:
yuluo
2024-04-13 14:49:19 +08:00
parent 726f419172
commit c3b8621554
7 changed files with 61 additions and 9 deletions

View File

@@ -13,6 +13,8 @@ use std::{
thread,
time::Duration,
};
use reqwest::blocking::Client;
use crate::hbbs_http::create_client;
const MSG_TO_RUSTDESK_TARGET: &str = "rustdesk";
const MSG_TO_PEER_TARGET: &str = "peer";
@@ -280,7 +282,7 @@ fn request_plugin_sign(id: String, msg_to_rustdesk: MsgToRustDesk) -> PluginRetu
);
thread::spawn(move || {
let sign_url = format!("{}/lic/web/api/plugin-sign", get_api_server());
let client = reqwest::blocking::Client::new();
let client = create_client().unwrap_or(Client::new());
let req = PluginSignReq {
plugin_id: id.clone(),
version: signature_data.version,