2018-06-03 20:05:13 +02:00

13 lines
176 B
Go

package diag
import "net"
var (
global = mustParseCIDR("2000::/3") // RFC 4291
)
func mustParseCIDR(s string) *net.IPNet {
_, ipnet, _ := net.ParseCIDR(s)
return ipnet
}