From: Vsevolod Stakhov Date: Wed, 10 Apr 2019 19:11:27 +0000 (+0100) Subject: [Minor] Fix ES plugin X-Git-Tag: 1.9.2~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=750dc617973a51dff0bd191a2222b3a6926997ce;p=rspamd.git [Minor] Fix ES plugin --- 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,