StaticIPRange provides a static range of IP address prefixes (CIDRs).
| 55 | |
| 56 | // StaticIPRange provides a static range of IP address prefixes (CIDRs). |
| 57 | type 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. |
| 66 | func (StaticIPRange) CaddyModule() caddy.ModuleInfo { |
nothing calls this directly
no outgoing calls
no test coverage detected