diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-19 13:26:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 13:26:35 +0100 |
commit | 7fce47b64f76a4b12e7dde9be44c8f6b15a64a1f (patch) | |
tree | 106d758b4a06b13c215a2d27d08eef4c7f07564d /drivers/unix | |
parent | 35c1ce2ba6c5b983bb6e768580ea9a3430e9651d (diff) | |
parent | 19ef28a61494d06a001c983a50e5a33bb0c7615b (diff) |
Merge pull request #36349 from Faless/net/reuse_addr_again_on_posix
Fix set_reuse_address on non-Windows platforms.
Diffstat (limited to 'drivers/unix')
-rw-r--r-- | drivers/unix/net_socket_posix.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/unix/net_socket_posix.cpp b/drivers/unix/net_socket_posix.cpp index f7e412be63..4adeeb1d9b 100644 --- a/drivers/unix/net_socket_posix.cpp +++ b/drivers/unix/net_socket_posix.cpp @@ -676,8 +676,6 @@ void NetSocketPosix::set_reuse_address_enabled(bool p_enabled) { // On Windows, enabling SO_REUSEADDR actually would also enable reuse port, very bad on TCP. Denying... // Windows does not have this option, SO_REUSEADDR in this magical world means SO_REUSEPORT #ifndef WINDOWS_ENABLED - if (_is_stream) - return; int par = p_enabled ? 1 : 0; if (setsockopt(_sock, SOL_SOCKET, SO_REUSEADDR, SOCK_CBUF(&par), sizeof(int)) < 0) { WARN_PRINT("Unable to set socket REUSEADDR option!"); |