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 1fa2580 commit 83b1097
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platform/freebsd/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ impl Device {
}

fn set_route(&self, _old_route: Option<Route>, new_route: Route) -> Result<()> {
if new_route.addr.is_ipv6() {
return Ok(());
}
let if_name = self.name()?;
let prefix_len =
ipnet::ip_mask_to_prefix(new_route.netmask).map_err(|_| Error::InvalidConfig)?;
Expand Down

0 comments on commit 83b1097

Please sign in to comment.