]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection: Add "dest_host" event field if given
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 22 Nov 2019 14:12:36 +0000 (16:12 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 26 Nov 2019 09:56:35 +0000 (11:56 +0200)
src/lib/connection.c

index b4b049b29272f1eb06ce9dd90e5851c3bbebae19..a3aef767a5edd804565b810e40006c2b2705b193 100644 (file)
@@ -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);
 }