diff options
| author | Joakim Hulthe <joakim@hulthe.net> | 2024-04-25 14:37:06 +0200 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-04-25 15:19:49 +0200 |
| commit | 33063c8634cfbc4b0c5e0ce5787c2442f8129bd2 (patch) | |
| tree | 45dc827af632e7650ad2d7aebdaaac9cdf193980 | |
| parent | 548f3913cfd7c590d564f3a65df6e50a3374234f (diff) | |
| download | mullvadvpn-33063c8634cfbc4b0c5e0ce5787c2442f8129bd2.tar.xz mullvadvpn-33063c8634cfbc4b0c5e0ce5787c2442f8129bd2.zip | |
Fix use of deprecated socket2 function
| -rw-r--r-- | talpid-wireguard/src/ping_monitor/icmp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/talpid-wireguard/src/ping_monitor/icmp.rs b/talpid-wireguard/src/ping_monitor/icmp.rs index ff709e4532..0e5d739425 100644 --- a/talpid-wireguard/src/ping_monitor/icmp.rs +++ b/talpid-wireguard/src/ping_monitor/icmp.rs @@ -90,7 +90,7 @@ impl Pinger { // Asserting that `index` is non-zero since otherwise `if_nametoindex` would have return // an error socket - .bind_device_by_index(std::num::NonZeroU32::new(index)) + .bind_device_by_index_v4(std::num::NonZeroU32::new(index)) .map_err(Error::BindSocketByDevice)?; Ok(()) |
