From f332709fbd51d9e046c0b8157857c55681bb574a Mon Sep 17 00:00:00 2001 From: Matthias Hochgatterer Date: Fri, 21 Feb 2020 08:25:28 +0100 Subject: [PATCH] Set dnssd hostname to a randomly generated, persistent id #147 --- ip_transport.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ip_transport.go b/ip_transport.go index 86fc1cdc..44e21437 100644 --- a/ip_transport.go +++ b/ip_transport.go @@ -315,6 +315,7 @@ func newService(config *Config) dnssd.Service { Name: util.RemoveAccentsFromString(stripped), Type: "_hap._tcp", Domain: "local", + Host: strings.Replace(config.id, ":", "", -1), // use the id (without the colons) to get unique hostnames Text: config.txtRecords(), IPs: ips, Port: config.servePort,