Skip to content

Commit e3e6426

Browse files
committed
fix issue 663: UDP scan returns port as OPEN, when timed-out
1 parent b17b733 commit e3e6426

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/scanner/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ impl Scanner {
193193
}
194194
}
195195

196-
Ok(socket)
196+
Err(io::Error::new(
197+
io::ErrorKind::Other,
198+
format!("UDP scan timed-out for all tries on socket {}", socket),
199+
))
197200
}
198201

199202
/// Performs the connection to the socket with timeout

0 commit comments

Comments
 (0)