Merge pull request #30 from azlyth/master

Fix double period at end of formatted hostname
This commit is contained in:
Armon Dadgar 2015-03-09 09:57:00 -07:00
commit e23dbc9d18

View File

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