bump_tmtccmd #88

Merged
muellerr merged 3 commits from bump_tmtccmd into main 2023-11-11 16:37:48 +01:00
3 changed files with 7 additions and 6 deletions
Showing only changes of commit f9b94b29dc - Show all commits

View File

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