mirror of
https://github.com/timothymiller/cloudflare-ddns.git
synced 2026-03-21 22:48:57 -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> {
|
async fn fetch_trace_ip(client: &Client, url: &str, timeout: Duration) -> Option<IpAddr> {
|
||||||
let resp = client
|
let resp = client
|
||||||
.get(url)
|
.get(url)
|
||||||
|
.header("Host", "one.one.one.one")
|
||||||
.timeout(timeout)
|
.timeout(timeout)
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user