summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim@hulthe.net>2024-04-25 14:37:06 +0200
committerMarkus Pettersson <markus.pettersson@mullvad.net>2024-04-25 15:19:49 +0200
commit33063c8634cfbc4b0c5e0ce5787c2442f8129bd2 (patch)
tree45dc827af632e7650ad2d7aebdaaac9cdf193980
parent548f3913cfd7c590d564f3a65df6e50a3374234f (diff)
downloadmullvadvpn-33063c8634cfbc4b0c5e0ce5787c2442f8129bd2.tar.xz
mullvadvpn-33063c8634cfbc4b0c5e0ce5787c2442f8129bd2.zip
Fix use of deprecated socket2 function
-rw-r--r--talpid-wireguard/src/ping_monitor/icmp.rs2
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(())