summaryrefslogtreecommitdiff
path: root/minecproxy/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'minecproxy/server.c')
-rw-r--r--minecproxy/server.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/minecproxy/server.c b/minecproxy/server.c
index 7a992d1..341a353 100644
--- a/minecproxy/server.c
+++ b/minecproxy/server.c
@@ -94,7 +94,8 @@ void server_delete_by_filename(const char *filename)
/* FIXME: Share with minecctl */
static void server_dump(struct server *server)
{
- struct server_local *local;
+ struct server_local *listen;
+ struct saddr *local;
struct saddr *remote;
struct saddr *rcon;
@@ -118,9 +119,15 @@ static void server_dump(struct server *server)
verbose(" * Announce port: %" PRIu16, server->scfg.announce_port);
if (!list_empty(&server->listenings)) {
- verbose(" * Local:");
- list_for_each_entry(local, &server->listenings, list)
- verbose(" * %s", local->local.addrstr);
+ verbose(" * Listening:");
+ list_for_each_entry(listen, &server->listenings, list)
+ verbose(" * %s", listen->local.addrstr);
+ }
+
+ if (!list_empty(&server->scfg.locals)) {
+ verbose(" * Locals:");
+ list_for_each_entry(local, &server->scfg.locals, list)
+ verbose(" * %s", local->addrstr);
}
if (!list_empty(&server->scfg.remotes)) {