Skip to content

Commit 30e5ce9

Browse files
committed
v0.5.0
Signed-off-by: Joe Borg <joe@josephb.org>
1 parent 35b0d22 commit 30e5ce9

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ripping"
33
description = "Ripping is the ping toolbox"
4-
version = "0.2.0"
4+
version = "0.5.0"
55
authors = ["Joe Borg <joe@josephb.org>"]
66
edition = "2018"
77
license = "Apache-2.0"
@@ -12,12 +12,9 @@ readme = "README.md"
1212
[dependencies]
1313
cast = "0.3.0"
1414
clap = "3.2.25"
15-
socket2 = { features = ["all"], version = "0.5.10" }
15+
socket2 = { features = ["all"], version = "0.6.0" }
1616
term_size = "0.3.2"
1717
textplots = "0.8.7"
1818

1919
[profile.release]
2020
opt-level = 3
21-
22-
[badges]
23-
travis-ci = { repository = "joedborg/ripping", branch = "master" }

src/ping.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,7 @@ fn ping(host: &str, timeout: u64, size: u64) -> PingResult {
111111
// Send packet
112112
let start_time = Instant::now();
113113
let addr = std::net::SocketAddr::new(ip, 0);
114-
if socket.send_to(&packet, &addr.into()).is_err() {
115-
return PingResult {
116-
dropped: true,
117-
latency_ms: timeout,
118-
};
119-
}
114+
socket.send_to(&packet, &addr.into()).unwrap();
120115

121116
// Receive reply
122117
let mut buffer = [std::mem::MaybeUninit::<u8>::uninit(); 1024];

0 commit comments

Comments
 (0)