Use IP for udp socket
This commit is contained in:
parent
61732c97b6
commit
21be916367
|
@ -49,7 +49,7 @@ impl UdpSocket {
|
|||
family,
|
||||
SocketType::DGRAM,
|
||||
SocketFlags::NONBLOCK | SocketFlags::CLOEXEC,
|
||||
Protocol::UDP,
|
||||
Protocol::IP,
|
||||
)?;
|
||||
|
||||
rustix::net::sockopt::set_socket_reuseaddr(&sock, true)?;
|
||||
|
|
Loading…
Reference in a new issue