From: Timo Sirainen Date: Fri, 22 Nov 2019 14:12:36 +0000 (+0200) Subject: lib: connection: Add "dest_host" event field if given X-Git-Tag: 2.3.9~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa446a7ca37a4102ee6d8e745aefe735a8b6eecf;p=thirdparty%2Fdovecot%2Fcore.git lib: connection: Add "dest_host" event field if given --- diff --git a/src/lib/connection.c b/src/lib/connection.c index b4b049b292..a3aef767a5 100644 --- a/src/lib/connection.c +++ b/src/lib/connection.c @@ -619,6 +619,8 @@ void connection_init_client_ip_from(struct connection_list *list, i_zero(&conn->local_ip); connection_init(list, conn, name); + if (hostname != NULL) + event_add_str(conn->event, "dest_host", hostname); connection_update_event(conn); }