summaryrefslogtreecommitdiffstats
path: root/src/printf.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-16 05:23:12 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-16 05:23:12 +0200
commit96ec41768b5937e5cf0cd83bf815d365d12d1f93 (patch)
treec56fb1c45db75c32b156b5ceee8758334df69c12 /src/printf.c
parent037c58ae51a61064d7bb5022715546509328d83f (diff)
downloadfastd-96ec41768b5937e5cf0cd83bf815d365d12d1f93.tar
fastd-96ec41768b5937e5cf0cd83bf815d365d12d1f93.zip
Add support for peers specified by hostnames
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c3
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: