MCPcopy
hub / github.com/cloudflare/cloudflared / newIPRule

Function newIPRule

ingress/config_test.go:418–422  ·  view source on GitHub ↗
(t *testing.T, prefix string, ports []int, allow bool)

Source from the content-addressed store, hash-verified

416}
417
418func newIPRule(t *testing.T, prefix string, ports []int, allow bool) ipaccess.Rule {
419 rule, err := ipaccess.NewRuleByCIDR(&prefix, ports, allow)
420 require.NoError(t, err)
421 return rule
422}

Calls 1

NewRuleByCIDRFunction · 0.92

Tested by

no test coverage detected