Skip to content

Commit

Permalink
Set dnssd hostname to a randomly generated, persistent id #147
Browse files Browse the repository at this point in the history
  • Loading branch information
brutella committed Feb 21, 2020
1 parent da56e82 commit f332709
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ip_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f332709

Please sign in to comment.