TLS-F: Fetcher V2

This commit is contained in:
Alexey
2026-02-20 13:36:54 +03:00
parent 32a9405002
commit 487aa8fbce
3 changed files with 47 additions and 34 deletions

View File

@@ -138,7 +138,7 @@ pub fn resolve_interface_ip(name: &str, want_ipv6: bool) -> Option<IpAddr> {
}
} else if let Some(v6) = address.as_sockaddr_in6() {
if want_ipv6 {
return Some(IpAddr::V6(v6.ip().to_std()));
return Some(IpAddr::V6(v6.ip().clone()));
}
}
}

View File

@@ -609,7 +609,7 @@ impl UpstreamManager {
}
let result = tokio::time::timeout(
Duration::from_secs(DC_PING_TIMEOUT_SECS),
self.ping_single_dc(&upstream_config, addr)
self.ping_single_dc(&upstream_config, Some(bind_rr.clone()), addr)
).await;
let ping_result = match result {