From: Vsevolod Stakhov Date: Tue, 17 Sep 2019 12:35:17 +0000 (+0100) Subject: [Minor] Another fix for expect_ip, sigh.. X-Git-Tag: 2.0~194 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99d4c15237cf8647ca8fd3948c6ebff18149aa65;p=rspamd.git [Minor] Another fix for expect_ip, sigh.. --- diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua index b6919cb10..3a3b8e0ee 100644 --- a/lualib/lua_cfg_transform.lua +++ b/lualib/lua_cfg_transform.lua @@ -327,10 +327,11 @@ local function emails_section_convert(cfg, section) if k == 'expect_ip' then -- Another stupid hack if not converted.return_codes then - converted.return_codes = {} + converted.returncodes = {} end local symbol = value.symbol or name - converted.return_codes[symbol] = { v } + converted.returncodes[symbol] = { v } + skip = true end if not skip then