]> source.dussan.org Git - rspamd.git/commitdiff
Push inet addr instead of the string for lua worker.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Apr 2015 15:38:43 +0000 (16:38 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Apr 2015 15:38:43 +0000 (16:38 +0100)
src/lua_worker.c

index a93a2c2fa7ed015bbf20f50f46396bff7bcaada8..50db9ea6befa944b7e9dbf5df363591451d84f64 100644 (file)
@@ -287,7 +287,7 @@ lua_accept_socket (gint fd, short what, void *arg)
        rspamd_lua_setclass (L, "rspamd{worker}", -1);
        *pctx = ctx;
        lua_pushinteger (L, nfd);
-       lua_pushstring (L, rspamd_inet_address_to_string (addr));
+       rspamd_lua_ip_push (L, addr);
        lua_pushinteger (L, 0);