Commit 21783ff5 authored by Max Kellermann's avatar Max Kellermann

net/SocketDescriptor: remove unnecessary SO_REUSEPORT check

parent fd923d5d
...@@ -283,16 +283,12 @@ SocketDescriptor::SetReuseAddress(bool value) noexcept ...@@ -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
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment