aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/dns.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-30 10:07:41 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-30 10:07:41 +0000
commit0e725e24bf64bc70a47c73ea8b63231498921a5b (patch)
tree5cb4d1e14e74e2f95e2cac49ef2d485d68804f26 /src/libserver/dns.c
parent9269c1d0c60d52ab1885ada800f88d3dc9dbc5f1 (diff)
downloadrspamd-0e725e24bf64bc70a47c73ea8b63231498921a5b.tar.gz
rspamd-0e725e24bf64bc70a47c73ea8b63231498921a5b.zip
[Minor] Allow delayed DNS servers init
Diffstat (limited to 'src/libserver/dns.c')
-rw-r--r--src/libserver/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/dns.c b/src/libserver/dns.c
index 4fbf40728..016f63b25 100644
--- a/src/libserver/dns.c
+++ b/src/libserver/dns.c
@@ -308,7 +308,7 @@ rspamd_dns_resolv_conf_on_server (struct rdns_resolver *resolver,
rspamd_inet_address_set_port (addr, port);
test_fd = rspamd_inet_address_connect (addr, SOCK_DGRAM, TRUE);
- if (test_fd == -1) {
+ if (test_fd == -1 && (errno != EINTR || errno != ECONNREFUSED || errno != ECONNRESET)) {
msg_warn_config ("cannot open connection to nameserver at address %s: %s",
name, strerror (errno));
rspamd_inet_address_free (addr);