diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-01 11:53:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-01 11:53:29 +0100 |
commit | f860d55ac4b9b678b0a1419e88bf014d9bca72f5 (patch) | |
tree | a2b09051ab7f15835a632be08eb953d8a07c791c /src/lua | |
parent | 80d82fd1bde27d3db317dcdd6d1dc8a25968e24e (diff) | |
download | rspamd-f860d55ac4b9b678b0a1419e88bf014d9bca72f5.tar.gz rspamd-f860d55ac4b9b678b0a1419e88bf014d9bca72f5.zip |
[Feature] Preliminary maps addon for controller
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_map.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lua/lua_map.c b/src/lua/lua_map.c index 25e7bdc92..72bc00fca 100644 --- a/src/lua/lua_map.c +++ b/src/lua/lua_map.c @@ -843,8 +843,6 @@ lua_map_get_key (lua_State * L) if (!rspamd_parse_inet_address_ip (addr_str, len, addr->addr)) { addr = NULL; - msg_warn ("invalid ip address: %*s, when checking map: %s", - (gint)len, addr_str, map->map->name); } } else if (lua_type (L, 2) == LUA_TUSERDATA) { @@ -1222,15 +1220,13 @@ lua_map_get_uri (lua_State *L) { LUA_TRACE_POINT; struct rspamd_lua_map *map = lua_check_map (L, 1); - const gchar *ret = "undefined"; struct rspamd_map_backend *bk; - guint i; + guint i; if (map != NULL) { for (i = 0; i < map->map->backends->len; i ++) { bk = g_ptr_array_index (map->map->backends, i); - ret = bk->uri; - lua_pushstring (L, ret); + lua_pushstring (L, bk->uri); } } else { |