From 3c1f038fbcd63cde2c11e7a789d78d8243017180 Mon Sep 17 00:00:00 2001 From: df Date: Sun, 26 Jul 2020 14:56:29 +0100 Subject: [PATCH] Service registered must have FQDN as hostname --- testmdnsd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); }