mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Fix the initialisation of accept_filter_arg.
[skip alpine ci] [skip irctest ci] [skip ubuntu ci] [skip windows ci]
This commit is contained in:
parent
1bd8c09194
commit
e3db9ed118
@ -57,7 +57,8 @@ namespace
|
||||
#if defined TCP_DEFER_ACCEPT
|
||||
return SocketEngine::SetOption(ls, IPPROTO_TCP, TCP_DEFER_ACCEPT, timeout);
|
||||
#elif defined SO_ACCEPTFILTER
|
||||
struct accept_filter_arg afa = { 0 };
|
||||
struct accept_filter_arg afa;
|
||||
memset(&afa, 0, sizeof(afa));
|
||||
strcpy(afa.af_name, "dataready");
|
||||
return SocketEngine::SetOption(ls, SOL_SOCKET, SO_ACCEPTFILTER, afa);
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user