diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-02-17 18:17:35 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-02-17 18:17:35 +0200 |
commit | 9daf62847cdef2dfffa929a6e70c08bef4b4f869 (patch) | |
tree | 2fc9380a459e7fc6a2f547d1b890f62d5095314f /rules | |
parent | aa06387d2e2779e96cf50f2b4060d2e01cfb9be3 (diff) | |
download | rspamd-9daf62847cdef2dfffa929a6e70c08bef4b4f869.tar.gz rspamd-9daf62847cdef2dfffa929a6e70c08bef4b4f869.zip |
[Minor] Fix rspamd_parse_redis_server
Diffstat (limited to 'rules')
-rw-r--r-- | rules/global_functions.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/global_functions.lua b/rules/global_functions.lua index cab77b714..d0e9c07fb 100644 --- a/rules/global_functions.lua +++ b/rules/global_functions.lua @@ -3,8 +3,9 @@ local logger = require "rspamd_logger" -- This function parses redis server definition using either -- specific server string for this module or global -- redis section -function rspamd_parse_redis_server(module_name, result) +function rspamd_parse_redis_server(module_name) + local result = {} local default_port = 6379 local default_timeout = 1.0 local upstream_list = require "rspamd_upstream_list" @@ -66,7 +67,6 @@ function rspamd_parse_redis_server(module_name, result) -- Try local options local opts = rspamd_config:get_all_opt(module_name) - local result = {} local ret = false if opts then |