diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-21 14:52:18 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-21 14:52:18 +0100 |
commit | e1ff872f1a1070ec27ba9c5d011e19044941a3a8 (patch) | |
tree | 57edc4ae1c0711a1043b5f6ebfa1cccb92f3426d /src/lua/lua_common.h | |
parent | 4eef5ea9ba8af9c57b3985b4671b2c6fa0d081dd (diff) | |
download | rspamd-e1ff872f1a1070ec27ba9c5d011e19044941a3a8.tar.gz rspamd-e1ff872f1a1070ec27ba9c5d011e19044941a3a8.zip |
Fix lua API for new inet addr structure.
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r-- | src/lua/lua_common.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index 9902fd845..f9d977244 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -126,7 +126,7 @@ ucl_object_t * lua_rcl_obj_get (lua_State *L, gint idx); /** * Push lua ip address */ -void lua_ip_push (lua_State *L, int af, gpointer data); +void lua_ip_push (lua_State *L, rspamd_inet_addr_t *addr); /** * Push ip address from a string (nil is pushed if a string cannot be converted) @@ -142,11 +142,7 @@ int rspamd_lua_typerror (lua_State *L, int narg, const char *tname); * Lua IP address structure */ struct rspamd_lua_ip { - union { - struct in6_addr ip6; - struct in_addr ip4; - } data; - int af; + rspamd_inet_addr_t addr; gboolean is_valid; }; |