Skip to content

Commit b74285a

Browse files
authored
protocols/tcp: Replace get_if_addrs with if-addrs (#1788)
Signed-off-by: koushiro <[email protected]>
1 parent 6b3500b commit b74285a

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
- Update `libp2p-core`, `libp2p-floodsub`, `libp2p-gossipsub`, `libp2p-mplex`,
2929
`libp2p-noise`, `libp2p-plaintext`, `libp2p-pnet`, `libp2p-request-response`,
30-
`libp2p-websocket` and `parity-multiaddr`.
30+
`libp2p-tcp`, `libp2p-websocket` and `parity-multiaddr`.
3131

3232
# Version 0.28.1 [2020-09-10]
3333

protocols/mdns/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ void = "1.0"
2727
wasm-timer = "0.2.4"
2828

2929
[dev-dependencies]
30-
get_if_addrs = "0.5.3"
30+
if-addrs = "0.6.4"

protocols/mdns/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ mod tests {
632632
// properties.
633633
#[test]
634634
fn respect_query_interval() {
635-
let own_ips: Vec<std::net::IpAddr> = get_if_addrs::get_if_addrs().unwrap()
635+
let own_ips: Vec<std::net::IpAddr> = if_addrs::get_if_addrs().unwrap()
636636
.into_iter()
637637
.map(|i| i.addr.ip())
638638
.collect();

transports/tcp/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.22.1 [unreleased]
2+
3+
- Replace `get_if_addrs` with `if-addrs`.
4+
15
# 0.22.0 [2020-09-09]
26

37
- Bump `libp2p-core` dependency.

transports/tcp/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "libp2p-tcp"
33
edition = "2018"
44
description = "TCP/IP transport protocol for libp2p"
5-
version = "0.22.0"
5+
version = "0.22.1"
66
authors = ["Parity Technologies <[email protected]>"]
77
license = "MIT"
88
repository = "https://github.com/libp2p/rust-libp2p"
@@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"]
1313
async-std = { version = "1.6.2", optional = true }
1414
futures = "0.3.1"
1515
futures-timer = "3.0"
16-
get_if_addrs = "0.5.3"
16+
if-addrs = "0.6.4"
1717
ipnet = "2.0.0"
1818
libp2p-core = { version = "0.22.0", path = "../../core" }
1919
log = "0.4.1"

transports/tcp/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
3232
use futures::{future::{self, Ready}, prelude::*};
3333
use futures_timer::Delay;
34-
use get_if_addrs::{IfAddr, get_if_addrs};
34+
use if_addrs::{IfAddr, get_if_addrs};
3535
use ipnet::{IpNet, Ipv4Net, Ipv6Net};
3636
use libp2p_core::{
3737
Transport,

0 commit comments

Comments
 (0)