From: Vsevolod Stakhov Date: Sun, 12 Feb 2017 17:23:12 +0000 (+0000) Subject: [Minor] Fix plugins to work with the default settings X-Git-Tag: 1.5.0~125 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=da997fd8e663b236f8224c13341769848ac9efc7;p=rspamd.git [Minor] Fix plugins to work with the default settings --- diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 78b83ad2d..e80b5652a 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -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'}, diff --git a/src/plugins/lua/dcc.lua b/src/plugins/lua/dcc.lua index c5354f0d7..bde9e7983 100644 --- a/src/plugins/lua/dcc.lua +++ b/src/plugins/lua/dcc.lua @@ -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