MCPcopy
hub / github.com/caddyserver/caddy / StaticIPRange

Struct StaticIPRange

modules/caddyhttp/ip_range.go:57–63  ·  view source on GitHub ↗

StaticIPRange provides a static range of IP address prefixes (CIDRs).

Source from the content-addressed store, hash-verified

55
56// StaticIPRange provides a static range of IP address prefixes (CIDRs).
57type StaticIPRange struct {
58 // A static list of IP ranges (supports CIDR notation).
59 Ranges []string `json:"ranges,omitempty"`
60
61 // Holds the parsed CIDR ranges from Ranges.
62 ranges []netip.Prefix
63}
64
65// CaddyModule returns the Caddy module information.
66func (StaticIPRange) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected