net/SocketDescriptor: remove unnecessary SO_REUSEPORT check

This commit is contained in:
Max Kellermann 2018-08-21 11:35:29 +02:00
parent fd923d5d96
commit 21783ff5f7

View File

@ -283,16 +283,12 @@ SocketDescriptor::SetReuseAddress(bool value) noexcept
#ifdef __linux__ #ifdef __linux__
#ifdef SO_REUSEPORT
bool bool
SocketDescriptor::SetReusePort(bool value) noexcept SocketDescriptor::SetReusePort(bool value) noexcept
{ {
return SetBoolOption(SOL_SOCKET, SO_REUSEPORT, value); return SetBoolOption(SOL_SOCKET, SO_REUSEPORT, value);
} }
#endif
bool bool
SocketDescriptor::SetFreeBind(bool value) noexcept SocketDescriptor::SetFreeBind(bool value) noexcept
{ {