From: Vsevolod Stakhov Date: Mon, 2 Apr 2018 11:13:45 +0000 (+0100) Subject: [Minor] Do not pass hostname as IP to Lua X-Git-Tag: 1.7.3~57 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f76fe912e3980ffc7684fff3818490649401188;p=rspamd.git [Minor] Do not pass hostname as IP to Lua --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index b7f636c37..9819c4eac 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2926,7 +2926,7 @@ lua_task_get_hostname (lua_State *L) * message sender's IP address enclosed in square * brackets (e.g. `[a.b.c.d]') */ - lua_pushstring (L, "unknown"); + lua_pushnil (L); } else { lua_pushstring (L, task->hostname);