diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-08-25 15:13:24 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-08-25 15:13:24 +0400 |
commit | ab8f97db48ceefef5fdf47ea8a5954da635ffa31 (patch) | |
tree | 41fcd689903bbc215f168d0db7ff3ca697197da4 /src/main.c | |
parent | 034d3a91d5c60328bd99fc279f2a0ffa89d258d1 (diff) | |
download | rspamd-ab8f97db48ceefef5fdf47ea8a5954da635ffa31.tar.gz rspamd-ab8f97db48ceefef5fdf47ea8a5954da635ffa31.zip |
* Migrate fuzzy storage to use UDP instead of TCP
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
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); |