diff --git a/src/scanner/mod.rs b/src/scanner/mod.rs index 47418a108..8d52fde7f 100644 --- a/src/scanner/mod.rs +++ b/src/scanner/mod.rs @@ -193,7 +193,10 @@ impl Scanner { } } - Ok(socket) + Err(io::Error::new( + io::ErrorKind::Other, + format!("UDP scan timed-out for all tries on socket {}", socket), + )) } /// Performs the connection to the socket with timeout