13 lines
176 B
Go
Raw Normal View History

2018-06-03 20:04:11 +02:00
package diag
import "net"
var (
global = mustParseCIDR("2000::/3") // RFC 4291
)
func mustParseCIDR(s string) *net.IPNet {
_, ipnet, _ := net.ParseCIDR(s)
return ipnet
}