We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d35ee00 commit f6e95a3Copy full SHA for f6e95a3
1 file changed
src/main.rs
@@ -5,7 +5,7 @@ mod net;
5
mod stats;
6
mod worker;
7
8
-use cli::{Config, SupportedProtocol, parse_args};
+use cli::{Config, SupportedProtocol, TimeoutAction, parse_args};
9
use net::sock_mgr::SocketManager;
10
use net::socket::make_socket;
11
#[cfg(unix)]
@@ -49,7 +49,10 @@ fn main() -> io::Result<()> {
49
50
// Disconnect does not work for raw listen sockets and FreeBSD UDP
51
// disconnect is unreliable; keep sockets unconnected so we can relock.
52
- if user_requested_cfg.listen_proto == SupportedProtocol::ICMP || cfg!(target_os = "freebsd") {
+ if user_requested_cfg.on_timeout == TimeoutAction::Drop
53
+ && (user_requested_cfg.listen_proto == SupportedProtocol::ICMP
54
+ || cfg!(target_os = "freebsd"))
55
+ {
56
user_requested_cfg.debug_no_connect = true;
57
}
58
0 commit comments