diff options
Diffstat (limited to 'src/printf.c')
-rw-r--r-- | src/printf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/printf.c b/src/printf.c index 7c922c5..c32ebf9 100644 --- a/src/printf.c +++ b/src/printf.c @@ -43,6 +43,9 @@ static void print_peer_str(const fastd_context *ctx, const fastd_peer *peer) { if (peer->config && peer->config->name) { fprintf(stderr, "%c%s%c", pl, peer->config->name, pr); } + else if (peer->config && peer->config->hostname) { + fprintf(stderr, "%c\"%s\"%c", pl, peer->config->hostname, pr); + } else { switch (peer->address.sa.sa_family) { case AF_UNSPEC: |