]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix plugins to work with the default settings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 12 Feb 2017 17:23:12 +0000 (17:23 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 12 Feb 2017 17:24:01 +0000 (17:24 +0000)
src/plugins/lua/clickhouse.lua
src/plugins/lua/dcc.lua

index 78b83ad2db799440866ae70258d113e6c5d86e9c..e80b5652a0c3829f4ecafcb1c4dfb7b1692a8e7f 100644 (file)
@@ -28,7 +28,6 @@ local nrows = 0
 
 local settings = {
   limit = 1000,
-  server = "localhost:8123",
   timeout = 5.0,
   bayes_spam_symbols = {'BAYES_SPAM'},
   bayes_ham_symbols = {'BAYES_HAM'},
index c5354f0d711a58ef9d2248b2ae7da49f26a79d3a..bde9e7983f616d189663fe14833641abc9c1508b 100644 (file)
@@ -105,6 +105,7 @@ local function check_dcc (task)
     task = task,
     host = opts['host'],
     port = opts['port'] or 1,
+    timeout = opts['timeout'] or 2.0,
     shutdown = true,
     data = data,
     callback = cb