summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 18:04:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 18:04:12 +0100
commite6d42dffd5367ca97a09167194f027727313af59 (patch)
tree205d0621c1971879c78a8e99cbd882d47f1c0ff7
parent027677eeeb05bc72124a9e1c177122f6d9da3319 (diff)
downloadrspamd-e6d42dffd5367ca97a09167194f027727313af59.tar.gz
rspamd-e6d42dffd5367ca97a09167194f027727313af59.zip
Save incoming address to webui session.
-rw-r--r--src/webui.c2
1 files changed, 2 insertions, 0 deletions
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);
}