summaryrefslogtreecommitdiffstats
path: root/src/libutil/upstream.c
diff options
context:
space:
mode:
authorAnton Yuzhaninov <citrin+git@citrin.ru>2022-06-29 15:10:33 +0100
committerAnton Yuzhaninov <citrin+git@citrin.ru>2022-06-29 15:11:54 +0100
commit9e39d84d330da1d94361b40d65dbeaf761fb19ce (patch)
tree01cfb738e261d13999c1382c7a529b42a914fd97 /src/libutil/upstream.c
parent508f8da2f6597aa76d779bd0f66f0bc4205c9c5e (diff)
downloadrspamd-9e39d84d330da1d94361b40d65dbeaf761fb19ce.tar.gz
rspamd-9e39d84d330da1d94361b40d65dbeaf761fb19ce.zip
[Fix] Upstreams: Don't ignore revive_time config option
Diffstat (limited to 'src/libutil/upstream.c')
-rw-r--r--src/libutil/upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c
index 7eb3e402e..4419d6fed 100644
--- a/src/libutil/upstream.c
+++ b/src/libutil/upstream.c
@@ -184,7 +184,7 @@ rspamd_upstreams_library_config (struct rspamd_config *cfg,
ctx->limits.max_errors = cfg->upstream_max_errors;
}
if (cfg->upstream_revive_time) {
- ctx->limits.revive_time = cfg->upstream_max_errors;
+ ctx->limits.revive_time = cfg->upstream_revive_time;
}
if (cfg->upstream_lazy_resolve_time) {
ctx->limits.lazy_resolve_time = cfg->upstream_lazy_resolve_time;