commit 750dc61: [Minor] Fix ES plugin

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Apr 10 19:14:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-10 20:11:27 +0100
URL: https://github.com/rspamd/rspamd/commit/750dc617973a51dff0bd191a2222b3a6926997ce (HEAD -> master)

[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,


More information about the Commits mailing list