Commit 3a434898 authored by ale's avatar ale

Ignore link-local unicast addrs for DNS binds

parent 9cc96046
Pipeline #5611 passed with stages
in 4 minutes and 39 seconds
......@@ -63,7 +63,7 @@ func nonLocalAddrs() []net.IP {
addrs, _ := intf.Addrs()
for _, addr := range addrs {
ip, _, err := net.ParseCIDR(addr.String())
if err != nil || ip.IsLoopback() {
if err != nil || ip.IsLoopback() || ip.IsLinkLocalUnicast() {
continue
}
ips = append(ips, ip)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment