diff options
author | Himbeer <himbeer@disroot.org> | 2025-03-24 11:41:28 +0100 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2025-03-24 11:41:28 +0100 |
commit | 5d17dc90fc9388e52ea35875ba78a84cfb7d77d1 (patch) | |
tree | 09c05b9280268ccee60bf2a3a4c49a66096ca8ff | |
parent | f4a34b1fb1d2b07bde4e9b6f408f8cb23e122148 (diff) |
Use IP addresses for connectivity check endpoints
Rust does not support hostname resolution, nor does rsdsl.
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index a1fe3d0..768ec75 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,8 +34,8 @@ const MONITOR_INTERVAL: Duration = Duration::from_secs(300); const MONITOR_TIMEOUT: Duration = Duration::from_secs(3600); const TCP_TIMEOUT: Duration = Duration::from_secs(8); const POLL_INTERVAL: Duration = Duration::from_millis(500); -const PING_V4: &str = "ipv4.google.com:80"; -const PING_V6: &str = "ipv6.google.com:80"; +const PING_V4: &str = "1.1.1.1:80"; +const PING_V6: &str = "[2606:4700:4700::1111]:80"; fn main() { println!("[info] init"); |