From 750dc617973a51dff0bd191a2222b3a6926997ce Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 10 Apr 2019 20:11:27 +0100 Subject: [PATCH] [Minor] Fix ES plugin --- src/plugins/lua/elastic.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index 18cc0ea09..960516bf4 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -36,6 +36,7 @@ local N = "elastic" local E = {} local connect_prefix = 'http://' local enabled = true +local ingest_geoip_type = 'plugins' local settings = { limit = 500, index_pattern = 'rspamd-%Y.%m.%d', @@ -448,8 +449,6 @@ if redis_params and opts then if settings.ingest_module then ingest_geoip_type = 'modules' - else - ingest_geoip_type = 'plugins' end settings.upstream = upstream_list.create(rspamd_config, -- 2.39.5