fix: fix message handler (changed this inside Arc)

This commit is contained in:
Jun Kurihara 2023-08-09 11:31:38 +09:00
commit 3d60175c11
No known key found for this signature in database
GPG key ID: 6D3FEE70E498C15B
7 changed files with 32 additions and 12 deletions

View file

@ -32,7 +32,7 @@ pub(super) fn bind_udp_socket(listening_on: &SocketAddr) -> Result<UdpSocket> {
} else {
Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::UDP))
}?;
// socket.set_reuse_address(true)?; // This isn't necessary
socket.set_reuse_address(true)?; // This isn't necessary?
socket.set_reuse_port(true)?;
if let Err(e) = socket.bind(&(*listening_on).into()) {