mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-07-31 21:29:29 +08:00
使用 DNS 分流
This commit is contained in:
@ -39,4 +39,8 @@ pub async fn fetch(method: MyMethod,
|
||||
headers: Option<HashMap<String, String>>,
|
||||
input_data: Option<Vec<u8>>) -> RustHttpResponse {
|
||||
http_package::fetch(_my_method_to_hyper_method(method), url, headers, input_data).await.unwrap()
|
||||
}
|
||||
|
||||
pub async fn dns_lookup_txt(host: String) -> Vec<String> {
|
||||
http_package::dns_lookup_txt(host).await.unwrap()
|
||||
}
|
Reference in New Issue
Block a user