]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix listening on UDP sockets
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 May 2016 10:47:09 +0000 (11:47 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 May 2016 10:47:09 +0000 (11:47 +0100)
src/rspamd.c

index 99fa6ca392aff8a61960807123bac163c11b36ca..b6b5a271c70cd2ffaad344b26e66f7177ad695a4 100644 (file)
@@ -369,7 +369,7 @@ create_listen_socket (GPtrArray *addrs, guint cnt,
                                ls = g_slice_alloc0 (sizeof (*ls));
                                ls->addr = g_ptr_array_index (addrs, i);
                                ls->fd = fd;
-                               ls->type = RSPAMD_WORKER_SOCKET_TCP;
+                               ls->type = RSPAMD_WORKER_SOCKET_UDP;
                                result = g_list_prepend (result, ls);
                        }
                }