diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-14 15:49:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-14 15:49:10 +0100 |
commit | 2b1fbf58f382ebd0c2b73eaf6b0e69c4bca8a69b (patch) | |
tree | 13b757612eedb6aa01b2998367fc07dc242dee6a /src/lua | |
parent | fee78f0f26562651ab8c8b449b0646914b23f328 (diff) | |
download | rspamd-2b1fbf58f382ebd0c2b73eaf6b0e69c4bca8a69b.tar.gz rspamd-2b1fbf58f382ebd0c2b73eaf6b0e69c4bca8a69b.zip |
[Project] Add symbols for explicit enabling
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_config.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index e54ecce42..802fab1a6 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1607,6 +1607,9 @@ lua_parse_symbol_flags (const gchar *str) if (strstr (str, "explicit_disable") != NULL) { ret |= SYMBOL_TYPE_EXPLICIT_DISABLE; } + if (strstr (str, "explicit_enable") != NULL) { + ret |= SYMBOL_TYPE_EXPLICIT_ENABLE; + } if (strstr (str, "coro") != NULL) { ret |= SYMBOL_TYPE_USE_CORO; } @@ -1687,6 +1690,11 @@ lua_push_symbol_flags (lua_State *L, guint flags) lua_rawseti (L, -2, i++); } + if (flags & SYMBOL_TYPE_EXPLICIT_ENABLE) { + lua_pushstring (L, "explicit_enable"); + lua_rawseti (L, -2, i++); + } + if (flags & SYMBOL_TYPE_IGNORE_PASSTHROUGH) { lua_pushstring (L, "ignore_passthrough"); lua_rawseti (L, -2, i++); |