From 8c2eb1f26be124f5a1bcf93318f550eae70d9ea7 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Thu, 18 Sep 2008 08:08:22 +0200 Subject: [PATCH] Print home servers, too --- src/main/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/command.c b/src/main/command.c index 16456e4..8c4302d 100644 --- a/src/main/command.c +++ b/src/main/command.c @@ -568,8 +568,8 @@ static int command_show_home_servers(rad_listen_t *listener, UNUSED int argc, UN if (home->type == HOME_TYPE_AUTH) { type = "auth"; - } else if (home->type == HOME_TYPE_AUTH) { - type = "auth"; + } else if (home->type == HOME_TYPE_ACCT) { + type = "acct"; } else continue; @@ -584,7 +584,7 @@ static int command_show_home_servers(rad_listen_t *listener, UNUSED int argc, UN } else continue; - cprintf(listener, "\t%s\t%d\t%s\t%s\t%d\n", + cprintf(listener, "%s\t%d\t%s\t%s\t%d\n", ip_ntoh(&home->ipaddr, buffer, sizeof(buffer)), home->port, type, state, home->currently_outstanding); -- 2.1.4