Skip to content

Commit

Permalink
Fix test_split_tunnel
Browse files Browse the repository at this point in the history
`ping` uses raw sockets rather than SOCK_DGRAM by default. This makes a
non-privileged user sad
  • Loading branch information
dlon committed Aug 27, 2024
1 parent 41579cf commit f144621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/connection-checker/src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f144621

Please sign in to comment.