aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/dns.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 /src/libserver/dns.c
parent9ee06af6e58a973d58bb5f749eed6b97dc3fe989 (diff)
downloadrspamd-639c67dbd85d566d04c87a2f6ec59fd9b5ffe54a.tar.gz
rspamd-639c67dbd85d566d04c87a2f6ec59fd9b5ffe54a.zip
[Fix] Fix parsing IPv6 nameservers in resolv.conf
Diffstat (limited to 'src/libserver/dns.c')
-rw-r--r--src/libserver/dns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libserver/dns.c b/src/libserver/dns.c
index 21a15297c..d2629fd21 100644
--- a/src/libserver/dns.c
+++ b/src/libserver/dns.c
@@ -240,8 +240,9 @@ rspamd_dns_resolv_conf_on_server (struct rdns_resolver *resolver,
{
struct rspamd_dns_resolver *dns_resolver = ud;
- return rspamd_upstreams_add_upstream (dns_resolver->ups,
- name, port, NULL);
+ return rspamd_upstreams_add_upstream (dns_resolver->ups, name, port,
+ RSPAMD_UPSTREAM_PARSE_NAMESERVER,
+ NULL);
}
struct rspamd_dns_resolver *