[Minor] Do not expand implicit arrays as it breaks things

This commit is contained in:
Vsevolod Stakhov 2018-11-23 18:09:28 +00:00
parent f2ca6b2e50
commit a1e3ab7e5e
2 changed files with 5 additions and 1 deletions

View File

@ -374,6 +374,10 @@ local function try_load_redis_servers(options, rspamd_config, result)
return true
end
lutil.debugm(N, rspamd_config,
'cannot load redis server from obj: %s, processed to %s',
options, result)
return false
end

View File

@ -2367,7 +2367,7 @@ rspamd_lua_try_load_redis (lua_State *L, const ucl_object_t *obj,
}
/* Function arguments */
ucl_object_push_lua (L, obj, true);
ucl_object_push_lua (L, obj, false);
pcfg = lua_newuserdata (L, sizeof (*pcfg));
rspamd_lua_setclass (L, "rspamd{config}", -1);
*pcfg = cfg;