diff --git a/testmdnsd.c b/testmdnsd.c index f56435b..a03050c 100644 --- a/testmdnsd.c +++ b/testmdnsd.c @@ -328,9 +328,10 @@ main(int argc, char **argv) } notrunning = 0; + /* service must have FQDN */ if (0 <= mdnsd_register_service( ifname, "_http._tcp.local", 80, - hostname, txt)) + fullname, txt)) printf("Registered name.\n"); }