mirror of https://github.com/telemt/telemt.git
commit
49fc11ddfa
10
src/main.rs
10
src/main.rs
|
|
@ -677,14 +677,8 @@ async fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
|
||||||
rc_clone.run_periodic_cleanup().await;
|
rc_clone.run_periodic_cleanup().await;
|
||||||
});
|
});
|
||||||
|
|
||||||
let detected_ip_v4: Option<std::net::IpAddr> = probe
|
let detected_ip_v4: Option<std::net::IpAddr> = probe.detected_ipv4.map(std::net::IpAddr::V4);
|
||||||
.reflected_ipv4
|
let detected_ip_v6: Option<std::net::IpAddr> = probe.detected_ipv6.map(std::net::IpAddr::V6);
|
||||||
.map(|s| s.ip())
|
|
||||||
.or_else(|| probe.detected_ipv4.map(std::net::IpAddr::V4));
|
|
||||||
let detected_ip_v6: Option<std::net::IpAddr> = probe
|
|
||||||
.reflected_ipv6
|
|
||||||
.map(|s| s.ip())
|
|
||||||
.or_else(|| probe.detected_ipv6.map(std::net::IpAddr::V6));
|
|
||||||
debug!(
|
debug!(
|
||||||
"Detected IPs: v4={:?} v6={:?}",
|
"Detected IPs: v4={:?} v6={:?}",
|
||||||
detected_ip_v4, detected_ip_v6
|
detected_ip_v4, detected_ip_v6
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue