From ab8f97db48ceefef5fdf47ea8a5954da635ffa31 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 25 Aug 2009 15:13:24 +0400 Subject: * Migrate fuzzy storage to use UDP instead of TCP --- src/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 4353174f8..233b93eeb 100644 --- a/src/main.c +++ b/src/main.c @@ -425,12 +425,14 @@ spawn_workers (struct rspamd_main *rspamd) cf = cur->data; /* Create listen socket */ - listen_sock = create_listen_socket (&cf->bind_addr, cf->bind_port, + if (cf->type != TYPE_FUZZY) { + listen_sock = create_listen_socket (&cf->bind_addr, cf->bind_port, cf->bind_family, cf->bind_host); - if (listen_sock == -1) { - exit(-errno); + if (listen_sock == -1) { + exit(-errno); + } + cf->listen_sock = listen_sock; } - cf->listen_sock = listen_sock; for (i = 0; i < cf->count; i++) { fork_worker (rspamd, cf); -- cgit v1.2.3