mirror of
https://github.com/tonarino/innernet.git
synced 2025-01-08 04:04:48 +02:00
parent
22203e63d0
commit
f715689540
@ -161,6 +161,7 @@ mod tests {
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
fn setup_basic_store(dir: &Path) {
|
||||
let mut store = DataStore::open_with_path(&dir.join("peer_store.json"), true).unwrap();
|
||||
|
||||
|
@ -171,7 +171,6 @@ pub fn get_local_addrs() -> Result<Vec<IpAddr>, io::Error> {
|
||||
use nix::{net::if_::InterfaceFlags, sys::socket::SockAddr};
|
||||
|
||||
let addrs = nix::ifaddrs::getifaddrs()?
|
||||
.inspect(|addr| println!("{:?}", addr))
|
||||
.filter(|addr| {
|
||||
addr.flags.contains(InterfaceFlags::IFF_UP)
|
||||
&& !addr.flags.intersects(
|
||||
|
Loading…
Reference in New Issue
Block a user