1
0
mirror of https://github.com/mje-nz/zerotier-dns.git synced 2024-05-11 05:55:15 +00:00

Merge pull request #2 from uxbh/bind-ipv6-issue

ignore link-local address
This commit is contained in:
unixblackhole
2017-06-17 09:01:11 -05:00
committed by GitHub

View File

@ -78,8 +78,10 @@ func getIfaceAddrs(iface string) []net.IP {
if err != nil {
continue
}
log.Debugf("Found address: %s", ip.String())
retaddrs = append(retaddrs, ip)
if !ip.IsLinkLocalUnicast() {
log.Debugf("Found address: %s", ip.String())
retaddrs = append(retaddrs, ip)
}
}
return retaddrs
}