doggo/pkg/config/config.go
huangnauh 3019f1cee6
feat: Handle nameserver parsing on Windows
* system default nameserver in windows

* change
2021-01-20 15:32:15 +05:30

9 lines
237 B
Go

package config
import "net"
// the whole `FEC0::/10` prefix is deprecated.
// [RFC 3879]: https://tools.ietf.org/html/rfc3879
func isUnicastLinkLocal(ip net.IP) bool {
return len(ip) == net.IPv6len && ip[0] == 0xfe && ip[1] == 0xc0
}