From 4b6a35c74a734d4fc0fc2524d2a0d4a72c7da631 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Fri, 27 Nov 2020 14:12:34 +0100 Subject: [PATCH] Disable SO_REUSEADDR for UDP. It allows binding multiple sockets to the same ADDR:PORT (unlike TCP, which still requires different ADDR:PORT combinations). --- core/io/packet_peer_udp.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/core/io/packet_peer_udp.cpp b/core/io/packet_peer_udp.cpp index e633a56d54e..488cfbeaa89 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);