mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-02 19:21:37 +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:
@ -27,4 +27,4 @@ void = "1.0"
|
||||
wasm-timer = "0.2.4"
|
||||
|
||||
[dev-dependencies]
|
||||
get_if_addrs = "0.5.3"
|
||||
if-addrs = "0.6.4"
|
||||
|
@ -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