diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-31 16:11:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-31 16:11:22 +0100 |
commit | 2b71eb7c30171ab8b9f16fdc2b05e3c91937c46a (patch) | |
tree | 226aec7de9caf7dc71748aa03dcd01d83a9751b5 /src/libserver/milter.c | |
parent | d128290c075ac95d71dd03c202558ebd3c8b6cc7 (diff) | |
download | rspamd-2b71eb7c30171ab8b9f16fdc2b05e3c91937c46a.tar.gz rspamd-2b71eb7c30171ab8b9f16fdc2b05e3c91937c46a.zip |
[Minor] Add missing IP header to milter output
Diffstat (limited to 'src/libserver/milter.c')
-rw-r--r-- | src/libserver/milter.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |