diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-11-01 10:34:24 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-11-01 13:33:56 +0200 |
commit | 36d11e2e6fe28672904bf91f6e5eaeca87103705 (patch) | |
tree | 3097d3e3c4b8b29fd84612ae53ba96acc9058d3b /src/plugins/lua/greylist.lua | |
parent | e2f599d7477081f0b58437b9218d72657883ab01 (diff) | |
download | rspamd-36d11e2e6fe28672904bf91f6e5eaeca87103705.tar.gz rspamd-36d11e2e6fe28672904bf91f6e5eaeca87103705.zip |
[Minor] Get rid of some global variables
- Also fix some bugs along the way
Diffstat (limited to 'src/plugins/lua/greylist.lua')
-rw-r--r-- | src/plugins/lua/greylist.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index 5e0ce9ff1..4117b9db2 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -226,7 +226,7 @@ local function greylist_check(task) end end - local ret + local ret, _ ret,_,upstream = rspamd_redis_make_request(task, redis_params, -- connect params hash_key, -- hash key @@ -312,7 +312,7 @@ local function greylist_set(task) meta_key, tostring(settings['expire']) }) else - rspamd_logger.infox(task, 'got error while connecting to redis: %1', addr) + rspamd_logger.infox(task, 'got error while connecting to redis: %1', upstream:get_addr()) upstream:fail() end elseif do_greylisting or do_greylisting_required then |