diff options
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r-- | lualib/lua_redis.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index 5bd6ede30..7737afa2b 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -79,7 +79,7 @@ local function redis_query_sentinel(ev_base, params, initialised) for _,m in ipairs(result) do local master = flatten_redis_table(m) - -- Wrap IPv6-adresses in brackets + -- Wrap IPv6-addresses in brackets if (master.ip:match(":")) then master.ip = "["..master.ip.."]" end @@ -110,7 +110,7 @@ local function redis_query_sentinel(ev_base, params, initialised) lutil.debugm(N, rspamd_config, 'found slave for master %s with ip %s and port %s', v.name, slave.ip, slave.port) - -- Wrap IPv6-adresses in brackets + -- Wrap IPv6-addresses in brackets if (slave.ip:match(":")) then slave.ip = "["..slave.ip.."]" end |