Mercurial > dovecot > core-2.2
changeset 21287:82b29b67b6f8
doveadm-server: Show UNIX socket connections as <local> in process title
Earlier they were shown as empty string.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 12 Dec 2016 12:42:53 +0200 |
parents | 082164be352a |
children | 9316919c5932 |
files | src/doveadm/client-connection.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/client-connection.c Mon Dec 12 12:43:47 2016 +0200 +++ b/src/doveadm/client-connection.c Mon Dec 12 12:42:53 2016 +0200 @@ -551,7 +551,8 @@ return NULL; doveadm_print_init(DOVEADM_PRINT_TYPE_SERVER); - conn->name = p_strdup(pool, net_ip2addr(&conn->remote_ip)); + conn->name = conn->remote_ip.family == 0 ? "<local>" : + p_strdup(pool, net_ip2addr(&conn->remote_ip)); conn->io = io_add(fd, IO_READ, client_connection_input, conn); conn->input = i_stream_create_fd(fd, MAX_INBUF_SIZE, FALSE); conn->output = o_stream_create_fd(fd, (size_t)-1, FALSE);