]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add missing IP header to milter output
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 31 May 2017 15:11:22 +0000 (16:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 31 May 2017 15:11:22 +0000 (16:11 +0100)
src/libserver/milter.c

index b02929609d46a19e1bdecf5954f139932d226280..983750a7780084b830fd3a06fcbfb00c6ac560c7 100644 (file)
@@ -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;