From: Vsevolod Stakhov Date: Wed, 31 May 2017 15:11:22 +0000 (+0100) Subject: [Minor] Add missing IP header to milter output X-Git-Tag: 1.6.0~89 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2b71eb7c30171ab8b9f16fdc2b05e3c91937c46a;p=rspamd.git [Minor] Add missing IP header to milter output --- diff --git a/src/libserver/milter.c b/src/libserver/milter.c index b02929609..983750a77 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -1253,6 +1253,11 @@ rspamd_milter_to_http (struct rspamd_milter_session *session) } } + if (session->addr) { + rspamd_http_message_add_header (msg, IP_ADDR_HEADER, + rspamd_inet_address_to_string (session->addr)); + } + rspamd_milter_macro_http (session, msg); return msg;