Fix double period at end of tmpHostname.

This commit is contained in:
Peter Valdez 2015-03-08 21:53:16 -04:00
parent eb98accb64
commit 8c52853f0a

View File

@ -99,7 +99,7 @@ func NewMDNSService(instance, service, domain, hostName string, port int, ips []
if err != nil { if err != nil {
// Try appending the host domain suffix and lookup again // Try appending the host domain suffix and lookup again
// (required for Linux-based hosts) // (required for Linux-based hosts)
tmpHostName := fmt.Sprintf("%s%s.", hostName, domain) tmpHostName := fmt.Sprintf("%s%s", hostName, domain)
ips, err = net.LookupIP(tmpHostName) ips, err = net.LookupIP(tmpHostName)