mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-24 23:31:33 +00:00
protocols/tcp: Replace get_if_addrs
with if-addrs
(#1788)
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
@ -632,7 +632,7 @@ mod tests {
|
||||
// properties.
|
||||
#[test]
|
||||
fn respect_query_interval() {
|
||||
let own_ips: Vec<std::net::IpAddr> = get_if_addrs::get_if_addrs().unwrap()
|
||||
let own_ips: Vec<std::net::IpAddr> = if_addrs::get_if_addrs().unwrap()
|
||||
.into_iter()
|
||||
.map(|i| i.addr.ip())
|
||||
.collect();
|
||||
|
Reference in New Issue
Block a user