]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another fix for expect_ip, sigh..
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Sep 2019 12:35:17 +0000 (13:35 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Sep 2019 12:35:40 +0000 (13:35 +0100)
lualib/lua_cfg_transform.lua

index b6919cb10fbe562ee21336354ccc9e46f65d1e31..3a3b8e0ee2483921a4c1baa0e5cca9ed17380747 100644 (file)
@@ -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