summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-11-27 14:12:34 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-11-27 14:12:34 +0100
commit4b6a35c74a734d4fc0fc2524d2a0d4a72c7da631 (patch)
tree79f520cfe075d2c4571dbfffcc9016728d448c2c
parent0b0b3d9b5a1333bd3bf8046762f1a8f39060ebfe (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.cpp1
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);