diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-11-27 14:12:34 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-11-27 14:12:34 +0100 |
commit | 4b6a35c74a734d4fc0fc2524d2a0d4a72c7da631 (patch) | |
tree | 79f520cfe075d2c4571dbfffcc9016728d448c2c | |
parent | 0b0b3d9b5a1333bd3bf8046762f1a8f39060ebfe (diff) |
Disable SO_REUSEADDR for UDP.
It allows binding multiple sockets to the same ADDR:PORT (unlike TCP,
which still requires different ADDR:PORT combinations).
-rw-r--r-- | core/io/packet_peer_udp.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/io/packet_peer_udp.cpp b/core/io/packet_peer_udp.cpp index e633a56d54..488cfbeaa8 100644 --- a/core/io/packet_peer_udp.cpp +++ b/core/io/packet_peer_udp.cpp @@ -178,7 +178,6 @@ Error PacketPeerUDP::listen(int p_port, const IP_Address &p_bind_address, int p_ } _sock->set_blocking_enabled(false); - _sock->set_reuse_address_enabled(true); _sock->set_broadcasting_enabled(broadcast); err = _sock->bind(p_bind_address, p_port); |