diff --git a/Cargo.toml b/Cargo.toml index 5d14de7..b7e0210 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ remem = "0.1.0" sha2 = "0.10.8" thiserror = "1.0.60" http = "1.1.0" -ifaces = "0.1.0" +nix = { version = "0.29.0", features = ["net"] } async-shutdown = "0.2.2" reqwest = { version = "0.12.4", features = ["stream"] } diff --git a/src/iface.rs b/src/iface.rs index 33ea837..fe7c0ca 100644 --- a/src/iface.rs +++ b/src/iface.rs @@ -8,9 +8,9 @@ use std::{ pub fn state() -> u64 { let mut hash = DefaultHasher::new(); - if let Ok(ifaces) = ifaces::Interface::get_all() { + if let Ok(ifaces) = nix::ifaddrs::getifaddrs() { for iface in ifaces { - iface.addr.hash(&mut hash); + iface.address.hash(&mut hash); } }