mirror of
https://github.com/timothymiller/cloudflare-ddns.git
synced 2026-03-21 14:38:56 -03:00
Add Host header to fetch_trace_ip function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user