Skip to content

Commit

Permalink
update freebsd route
Browse files Browse the repository at this point in the history
  • Loading branch information
xmh0511 committed Sep 11, 2024
1 parent 361813c commit 9d084d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/platform/freebsd/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,11 @@ impl Device {
return Err(io::Error::from(err).into());
}
if let Ok(addrs) = self.addresses() {
let ip_v6: Vec<IpAddr> =
addrs.into_iter().filter(|v| v.is_ipv6()).collect();
let ip_v6: Vec<IpAddr> = addrs
.into_iter()
.filter(|v| v.address.is_ipv6())
.map(|v| v.address)
.collect();
let mut req_v6 = self.request_v6()?;
let ctl_v6 = ctl_v6()?;
let ctl_v6 = ctl_v6.as_raw_fd();
Expand Down

0 comments on commit 9d084d2

Please sign in to comment.