From f1446219688d306e9213b9bbe716339a309ca8d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20L=C3=B6nnhager?= Date: Mon, 26 Aug 2024 21:40:30 +0200 Subject: [PATCH] Fix test_split_tunnel `ping` uses raw sockets rather than SOCK_DGRAM by default. This makes a non-privileged user sad --- test/connection-checker/src/net.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/connection-checker/src/net.rs b/test/connection-checker/src/net.rs index 40db99e8b509..9ff95f69bb24 100644 --- a/test/connection-checker/src/net.rs +++ b/test/connection-checker/src/net.rs @@ -63,7 +63,7 @@ pub fn send_udp(opt: &Opt, destination: SocketAddr) -> Result<(), eyre::Error> { pub fn send_ping(opt: &Opt, destination: IpAddr) -> eyre::Result<()> { eprintln!("Leaking IMCP packets to {destination}"); - ping::ping( + ping::dgramsock::ping( destination, Some(Duration::from_millis(opt.leak_timeout)), None,