diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-26 16:38:27 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-26 16:38:27 +0000 |
commit | fbe966f7b9d6f1655cbce792fb60d2d1b4633616 (patch) | |
tree | 540effaaeeeefa24a5bee904de3f3a9891e4bb53 /src/rspamadm/rspamadm.c | |
parent | a5af7ff8d409b63743889c5562c7b735e19313a8 (diff) | |
download | rspamd-fbe966f7b9d6f1655cbce792fb60d2d1b4633616.tar.gz rspamd-fbe966f7b9d6f1655cbce792fb60d2d1b4633616.zip |
[Rework] Change lua global variables registration
Diffstat (limited to 'src/rspamadm/rspamadm.c')
-rw-r--r-- | src/rspamadm/rspamadm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index 0c6ffd419..227cbc86b 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -458,8 +458,9 @@ main (gint argc, gchar **argv, gchar **env) setproctitle ("rspamdadm"); L = cfg->lua_state; + rspamd_lua_set_env (L, ucl_vars); rspamd_lua_set_path (L, NULL, ucl_vars); - rspamd_lua_set_globals (cfg, L, ucl_vars); + rspamd_lua_set_globals (cfg, L); rspamadm_add_lua_globals (); #ifdef WITH_HIREDIS |