Print home servers, too
authorAlan T. DeKok <aland@freeradius.org>
Thu, 18 Sep 2008 06:08:22 +0000 (08:08 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 18 Sep 2008 06:08:22 +0000 (08:08 +0200)
src/main/command.c

index 16456e4..8c4302d 100644 (file)
@@ -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);