diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-30 10:07:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-30 10:07:41 +0000 |
commit | 0e725e24bf64bc70a47c73ea8b63231498921a5b (patch) | |
tree | 5cb4d1e14e74e2f95e2cac49ef2d485d68804f26 /src/libserver/dns.c | |
parent | 9269c1d0c60d52ab1885ada800f88d3dc9dbc5f1 (diff) | |
download | rspamd-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.c | 2 |
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); |