summaryrefslogtreecommitdiffstats
path: root/src/lua_worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-22 16:38:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-22 16:38:43 +0100
commitc39cf8095a5358621cf8a8f67d5d42a51bf54949 (patch)
tree39c0dd8408a87154162597bd4650b41817eeb331 /src/lua_worker.c
parent145c4fd779a17297fea5e4a8490201644e67980f (diff)
downloadrspamd-c39cf8095a5358621cf8a8f67d5d42a51bf54949.tar.gz
rspamd-c39cf8095a5358621cf8a8f67d5d42a51bf54949.zip
Push inet addr instead of the string for lua worker.
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r--src/lua_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c
index a93a2c2fa..50db9ea6b 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);