Add Host header to fetch_trace_ip function

This commit is contained in:
DaRK AnGeL
2026-03-16 09:02:10 +02:00
committed by GitHub
parent 560a3b7b28
commit 6085ba0cc2

View File

@@ -167,6 +167,7 @@ pub fn parse_trace_ip(body: &str) -> Option<String> {
async fn fetch_trace_ip(client: &Client, url: &str, timeout: Duration) -> Option<IpAddr> {
let resp = client
.get(url)
.header("Host", "one.one.one.one")
.timeout(timeout)
.send()
.await