protocols/tcp: Replace get_if_addrs with if-addrs (#1788)

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
Qinxuan Chen
2020-10-09 20:18:39 +08:00
committed by GitHub
parent 6b3500b931
commit b74285a8fb
6 changed files with 10 additions and 6 deletions

View File

@ -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();