summaryrefslogtreecommitdiffstats
path: root/src/rspamadm/lua_repl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rspamadm/lua_repl.c')
-rw-r--r--src/rspamadm/lua_repl.c4
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;