summaryrefslogtreecommitdiff
path: root/server/server.c
diff options
context:
space:
mode:
authorGravatar Derrick Brashear <shadow@dementix.org>2003-03-28 02:02:37 -0500
committerGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-02-17 22:34:39 -0500
commit15597e86aff0e11dc3256a61f9a05961f794857f (patch)
tree99b465a693a7afbec5f86543ad98b25822326cb2 /server/server.c
parent1076f98863a6a5c740dc9f6554c11fc9c75b0899 (diff)
Underpinnings for realm.list enhancements
Replace the per-realm array of servers with a per-realm array of struct _ZRealm_server, so that we can have additional information associated with each server. Additionally, introduce the concept that not every server in a realm's list is necessarily a suitable place to send notices. This means that when selecting a server, we may need to skip ineligible entries.
Diffstat (limited to 'server/server.c')
-rw-r--r--server/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.c b/server/server.c
index 40551bc..88d2555 100644
--- a/server/server.c
+++ b/server/server.c
@@ -762,7 +762,7 @@ send_stats(struct sockaddr_in *who)
}
for (realm = otherrealms, i = 0; i < nrealms ; i++, realm++) {
sprintf(buf, "%s(%s)/%s", realm->name,
- inet_ntoa((realm->addrs[realm->idx]).sin_addr),
+ inet_ntoa((realm->srvrs[realm->idx].addr).sin_addr),
rlm_states[(int) realm->state]);
responses[num_resp++] = strsave(buf);
}