Mercurial > dovecot > core-2.2
diff src/pop3-login/pop3-proxy.c @ 5046:f2cc68a3a198 HEAD
Log the proxy destination host:port.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 19 Jan 2007 23:19:49 +0200 |
parents | 5b4c9b20eba0 |
children | 20302f49eda3 |
line wrap: on
line diff
--- a/src/pop3-login/pop3-proxy.c Fri Jan 19 23:07:19 2007 +0200 +++ b/src/pop3-login/pop3-proxy.c Fri Jan 19 23:19:49 2007 +0200 @@ -14,7 +14,7 @@ struct pop3_client *client) { string_t *str; - const char *line; + const char *line, *msg; i_assert(!client->destroyed); @@ -96,6 +96,11 @@ (void)o_stream_send_str(client->output, line); (void)o_stream_send(client->output, "\r\n", 2); + msg = t_strdup_printf("proxy(%s): started proxying to %s:%u", + client->common.virtual_user, + login_proxy_get_host(client->proxy), + login_proxy_get_port(client->proxy)); + login_proxy_detach(client->proxy, client->input, client->output); @@ -103,9 +108,7 @@ client->input = NULL; client->output = NULL; client->common.fd = -1; - client_destroy(client, - t_strdup_printf("proxy(%s): started", - client->common.virtual_user)); + client_destroy(client, msg); return; }