From 28c7fc667a0e9b08e27d8a097195ae368448864b Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Tue, 13 Oct 1998 13:12:04 +0000 Subject: Clean up the dump format: report addresses of clients, and fall back one tab. The old dump format was written for when we grouped clients by host manager. --- server/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/client.c') diff --git a/server/client.c b/server/client.c index 2dca538..2c41b77 100644 --- a/server/client.c +++ b/server/client.c @@ -187,8 +187,8 @@ client_dump_clients(fp) for (i = 0; i < HASHSIZE; i++) { for (client = client_bucket[i]; client; client = client->next) { - fprintf(fp, "\t%d (%s):\n", ntohs(client->addr.sin_port), - client->principal->string); + fprintf(fp, "%s/%d (%s):\n", inet_ntoa(client->addr.sin_addr), + ntohs(client->addr.sin_port), client->principal->string); subscr_dump_subs(fp, client->subs); } } -- cgit v1.2.3