MCPcopy Create free account
hub / github.com/authorizerdev/authorizer / parseCIDR

Function parseCIDR

internal/validators/endpoint.go:73–76  ·  view source on GitHub ↗
(cidr string)

Source from the content-addressed store, hash-verified

71}
72
73func parseCIDR(cidr string) *net.IPNet {
74 _, network, _ := net.ParseCIDR(cidr)
75 return network
76}

Callers 1

isPrivateIPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected