Merge branch 'main' into bump_tmtccmd
Some checks are pending
Rust/sat-rs/pipeline/pr-main Build queued...

This commit is contained in:
Robin Müller 2023-11-11 16:36:27 +01:00
commit f9b94b29dc

View File

@ -180,6 +180,7 @@ impl<
// Create a TCP listener bound to two addresses.
let socket = Socket::new(Domain::IPV4, Type::STREAM, None)?;
socket.set_reuse_address(cfg.reuse_addr)?;
#[cfg(unix)]
socket.set_reuse_port(cfg.reuse_port)?;
let addr = (cfg.addr).into();
socket.bind(&addr)?;