diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-10 11:53:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-10 11:53:23 +0100 |
commit | 5dac1cff96ff04cc43d690d3cbaf7ba23b8abaa7 (patch) | |
tree | dc5f9a05cdf7236a0f4a9cbac6862731aa44c246 /src/libserver | |
parent | 25584ee22ca2e17834a4aac2bf8f56f44273646b (diff) | |
download | rspamd-5dac1cff96ff04cc43d690d3cbaf7ba23b8abaa7.tar.gz rspamd-5dac1cff96ff04cc43d690d3cbaf7ba23b8abaa7.zip |
[Minor] REUSEPORT is broken everywhere but Linux
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/worker_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c index df3cb7fdf..1c7069521 100644 --- a/src/libserver/worker_util.c +++ b/src/libserver/worker_util.c @@ -953,7 +953,7 @@ rspamd_maybe_reuseport_socket (struct rspamd_worker_listen_socket *ls) return true; } -#if defined(SO_REUSEPORT) && defined(SO_REUSEADDR) +#if defined(SO_REUSEPORT) && defined(SO_REUSEADDR) && defined(LINUX) nfd = rspamd_inet_address_listen (ls->addr, (ls->type == RSPAMD_WORKER_SOCKET_UDP ? SOCK_DGRAM : SOCK_STREAM), |