This commit is contained in:
huangnauh 2021-01-20 09:32:12 +08:00
parent d873dc5b35
commit 4fda3714f1
3 changed files with 32 additions and 15 deletions

9
pkg/config/config.go Normal file
View 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
}