aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_upstream_test.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-14 09:30:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-14 09:30:08 +0100
commit639c67dbd85d566d04c87a2f6ec59fd9b5ffe54a (patch)
tree246f12e74d8020008026bdffed1399dc95987850 /test/rspamd_upstream_test.c
parent9ee06af6e58a973d58bb5f749eed6b97dc3fe989 (diff)
downloadrspamd-639c67dbd85d566d04c87a2f6ec59fd9b5ffe54a.tar.gz
rspamd-639c67dbd85d566d04c87a2f6ec59fd9b5ffe54a.zip
[Fix] Fix parsing IPv6 nameservers in resolv.conf
Diffstat (limited to 'test/rspamd_upstream_test.c')
-rw-r--r--test/rspamd_upstream_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rspamd_upstream_test.c b/test/rspamd_upstream_test.c
index 072a2a473..47094398f 100644
--- a/test/rspamd_upstream_test.c
+++ b/test/rspamd_upstream_test.c
@@ -78,7 +78,9 @@ rspamd_upstream_test_func (void)
* Test v4/v6 priorities
*/
nls = rspamd_upstreams_create (cfg->ups_ctx);
- g_assert (rspamd_upstreams_add_upstream (nls, "127.0.0.1", 0, NULL));
+ g_assert (rspamd_upstreams_add_upstream (nls, "127.0.0.1", 0,
+ RSPAMD_UPSTREAM_PARSE_DEFAULT,
+ NULL));
up = rspamd_upstream_get (nls, RSPAMD_UPSTREAM_RANDOM, NULL, 0);
rspamd_parse_inet_address (&paddr, "127.0.0.2", 0);
g_assert (rspamd_upstream_add_addr (up, paddr));