summaryrefslogtreecommitdiff
path: root/lib/confutil.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-05-15 14:20:52 +0200
committerLinus Nordberg <linus@nordberg.se>2013-05-15 14:20:52 +0200
commitfba1c7d1a6418221a94965d0431bf7df0a9a74a0 (patch)
tree168d4401100181050306a635adc72d118395b391 /lib/confutil.c
parent58f591ffc9a7d4fea5879210d56db3ca11e98f1e (diff)
WIP commit moving towards working server support.
Diffstat (limited to 'lib/confutil.c')
-rw-r--r--lib/confutil.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/confutil.c b/lib/confutil.c
index 3a1d639..7bd4a37 100644
--- a/lib/confutil.c
+++ b/lib/confutil.c
@@ -94,10 +94,17 @@ rs_context_print_config (struct rs_context *ctx, char **buf_out)
for (r = cfg->realms; r != NULL; r = r->next)
{
if (pp (&out, &len, "realm %s {\n", r->name)
- || pp (&out, &len, "\ttype = \"%s\"\n\ttimeout = %d\n\tretries = %d\n",
+ || pp (&out, &len,
+ "\ttype = \"%s\"\n"
+ "\ttimeout = %d\n"
+ "\tretries = %d\n"
+ "\tlisten_addr = \"%s\"\n"
+ "\tlisten_service = \"%s\"\n",
realm_type[r->type],
r->timeout,
- r->retries))
+ r->retries,
+ r->local_addr->hostname,
+ r->local_addr->service))
return -RSE_INTERNAL;
for (p = r->peers; p != NULL; p = p->next)
{