Skip to content

Commit

Permalink
fix: Upgrade libpnet depedency to 0.27.2 [hyperium#2347]
Browse files Browse the repository at this point in the history
Additionally, only depend on pnet_datalink to reduce compile times.

Closes hyperium#2347
  • Loading branch information
mrmonday committed Nov 27, 2020
1 parent a470446 commit 916b901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ tower-util = "0.3"
url = "1.0"

[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies]
pnet = "0.25.0"
pnet_datalink = "0.27.2"

[features]
# Nothing by default
Expand Down
2 changes: 1 addition & 1 deletion src/client/connect/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ mod tests {
let mut ip_v4 = None;
let mut ip_v6 = None;

let ips = pnet::datalink::interfaces()
let ips = pnet_datalink::interfaces()
.into_iter()
.flat_map(|i| i.ips.into_iter().map(|n| n.ip()));

Expand Down

0 comments on commit 916b901

Please sign in to comment.