feat: Handle nameserver parsing on Windows
* system default nameserver in windows * change
This commit is contained in:
parent
250591098b
commit
3019f1cee6
5 changed files with 166 additions and 18 deletions
9
pkg/config/config.go
Normal file
9
pkg/config/config.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue