]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: client: Use client_remote_id() to construct proctitle.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Tue, 10 Oct 2017 00:53:56 +0000 (02:53 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 7 Dec 2017 23:08:14 +0000 (00:08 +0100)
src/lmtp/client.c

index f188e18a6970221432bba5a02ecb4b64f528ff66..6094de916589107170d22c1b63533097b9e41b6f 100644 (file)
@@ -64,9 +64,9 @@ void client_state_set(struct client *client, const char *name, const char *args)
                str_append(title, "idling");
                break;
        case 1:
+               str_append(title, client_remote_id(client));
+               str_append_c(title, ' ');
                str_append(title, client->state.name);
-               if (client->remote_ip.family != 0)
-                       str_printfa(title, " %s", net_ip2addr(&client->remote_ip));
                if (args[0] != '\0')
                        str_printfa(title, " %s", args);
                break;