summaryrefslogtreecommitdiffstats
path: root/src/server/rpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/rpc.c')
-rw-r--r--src/server/rpc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/rpc.c b/src/server/rpc.c
index 152bf7c..163b345 100644
--- a/src/server/rpc.c
+++ b/src/server/rpc.c
@@ -339,12 +339,14 @@ static int rpc_receive(int client_sock)
complete += 100;
xmlAddDecimalProp(complete / size, tmp_node, "cachefill");
}
+ // Build space separated list of alt servers
int i;
char serverstr[1000] = {0}, target[100];
for (i = 0; i < NUMBER_SERVERS; ++i)
{
if (image->servers[i].host.type == 0) continue;
if (!host_to_string(&(image->servers[i].host), target, 100)) continue;
+ if (*serverstr) strcat(serverstr, " ");
strcat(serverstr, target);
}
xmlNewProp(tmp_node, BAD_CAST "servers", BAD_CAST serverstr); // TODO