]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not pass hostname as IP to Lua
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Apr 2018 11:13:45 +0000 (12:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Apr 2018 11:13:45 +0000 (12:13 +0100)
src/lua/lua_task.c

index b7f636c37c03bf463a6e7d564bc08f19ed837264..9819c4eac8232e908cb65a4f60e4fcfe8993ab09 100644 (file)
@@ -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);