refactor: remove set_reuse_address for udpsocket
This commit is contained in:
parent
2f43986630
commit
892f5f89e0
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ pub(super) fn bind_udp_socket(listening_on: &SocketAddr) -> Result<UdpSocket> {
|
||||||
} else {
|
} else {
|
||||||
Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::UDP))
|
Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::UDP))
|
||||||
}?;
|
}?;
|
||||||
socket.set_reuse_address(true)?;
|
// socket.set_reuse_address(true)?; // This isn't necessary
|
||||||
socket.set_reuse_port(true)?;
|
socket.set_reuse_port(true)?;
|
||||||
|
|
||||||
if let Err(e) = socket.bind(&(*listening_on).into()) {
|
if let Err(e) = socket.bind(&(*listening_on).into()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue