diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-09 13:47:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-09 13:47:44 +0100 |
commit | 488f72bad4fab719861b4641ff832f60729a5950 (patch) | |
tree | efb6714cb551c7611dffe0f25116cbab20b36a78 /src/rspamadm/lua_repl.c | |
parent | 4f69d50e5ef648c09b042d9bbca9a1b9106288b2 (diff) | |
download | rspamd-488f72bad4fab719861b4641ff832f60729a5950.tar.gz rspamd-488f72bad4fab719861b4641ff832f60729a5950.zip |
[Minor] Add flags to listen socket creation
Diffstat (limited to 'src/rspamadm/lua_repl.c')
-rw-r--r-- | src/rspamadm/lua_repl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rspamadm/lua_repl.c b/src/rspamadm/lua_repl.c index df970fd01..945b5635c 100644 --- a/src/rspamadm/lua_repl.c +++ b/src/rspamadm/lua_repl.c @@ -946,7 +946,9 @@ rspamadm_lua (gint argc, gchar **argv, const struct rspamadm_command *cmd) for (i = 0; i < addrs->len; i ++) { rspamd_inet_addr_t *addr = g_ptr_array_index (addrs, i); - fd = rspamd_inet_address_listen (addr, SOCK_STREAM, TRUE); + fd = rspamd_inet_address_listen (addr, SOCK_STREAM, + RSPAMD_INET_ADDRESS_LISTEN_ASYNC, -1); + if (fd != -1) { static ev_io ev; |