From: Vsevolod Stakhov Date: Wed, 22 Apr 2015 15:38:43 +0000 (+0100) Subject: Push inet addr instead of the string for lua worker. X-Git-Tag: 0.9.0~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c39cf8095a5358621cf8a8f67d5d42a51bf54949;p=thirdparty%2Frspamd.git Push inet addr instead of the string for lua worker. --- diff --git a/src/lua_worker.c b/src/lua_worker.c index a93a2c2fa7..50db9ea6be 100644 --- a/src/lua_worker.c +++ b/src/lua_worker.c @@ -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);