]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Upstreams: Don't ignore revive_time config option 4208/head
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Wed, 29 Jun 2022 14:10:33 +0000 (15:10 +0100)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Wed, 29 Jun 2022 14:11:54 +0000 (15:11 +0100)
src/libutil/upstream.c

index 7eb3e402e6d138708c4583476a592dc738ba0447..4419d6fedd981ccd4872f5f60b1c35bbdacab9f9 100644 (file)
@@ -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;