Removed the reuse port options

This commit is contained in:
WolverinDEV 2020-04-18 12:56:00 +02:00
parent edc0a9db2b
commit 0b06a87fa4

View File

@ -69,7 +69,7 @@ net::binding_result net::address_available(const sockaddr_storage& address, bind
fcntl(file_descriptor, F_SETFD, FD_CLOEXEC); /* just to ensure */
setsockopt(file_descriptor, SOL_SOCKET, SO_REUSEADDR, &disable, sizeof(int));
setsockopt(file_descriptor, SOL_SOCKET, SO_REUSEPORT, &disable, sizeof(int));
//setsockopt(file_descriptor, SOL_SOCKET, SO_REUSEPORT, &disable, sizeof(int));
if(type == binding_type::UDP && address.ss_family == AF_INET6)
setsockopt(file_descriptor, IPPROTO_IPV6, IPV6_V6ONLY, &enable, sizeof(int));