From e6d42dffd5367ca97a09167194f027727313af59 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 21 Apr 2014 18:04:12 +0100 Subject: Save incoming address to webui session. --- src/webui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webui.c b/src/webui.c index 98bc893d5..6e2e065a0 100644 --- a/src/webui.c +++ b/src/webui.c @@ -1752,6 +1752,8 @@ rspamd_webui_accept_socket (gint fd, short what, void *arg) nsession->pool = rspamd_mempool_new (rspamd_mempool_suggest_size ()); nsession->ctx = ctx; + memcpy (&nsession->from_addr, &addr, sizeof (addr)); + rspamd_http_router_handle_socket (ctx->http, nfd, nsession); } -- cgit v1.2.3