summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>2018-09-28 13:34:38 +0200
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>2018-09-28 13:34:38 +0200
commit21d9f2d8539c652e0641e114312fbcb70d10a115 (patch)
tree1c207a6b8812ead5e5d2aa2b7f91031f1e50985b /src
parent455af155e37c9a942f5ca6e78d8dc636d355df47 (diff)
downloadrspamd-21d9f2d8539c652e0641e114312fbcb70d10a115.tar.gz
rspamd-21d9f2d8539c652e0641e114312fbcb70d10a115.zip
[Fix] DCC - luacheck
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/dcc.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/lua/dcc.lua b/src/plugins/lua/dcc.lua
index aa3838bcb..30584e1e0 100644
--- a/src/plugins/lua/dcc.lua
+++ b/src/plugins/lua/dcc.lua
@@ -25,7 +25,6 @@ local lua_util = require "lua_util"
local tcp = require "rspamd_tcp"
local upstream_list = require "rspamd_upstream_list"
local fun = require "fun"
-local lua_util = require "lua_util"
if confighelp then
rspamd_config:add_example(nil, 'dcc',
@@ -44,10 +43,10 @@ local function check_dcc (task)
-- Connection
local client = '0.0.0.0'
local client_ip = task:get_from_ip()
- local dcc_upstream = nil
- local upstream = nil
- local addr = nil
- local port = nil
+ local dcc_upstream
+ local upstream
+ local addr
+ local port
local retransmits = 2
if opts['servers'] then