@marcel91200 / caddy Mirror · read-only / commits / 3a48b033
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 12, 09:30 UTC

Move PrivateRangesCIDR() back: add a pass-through function (#6514)

vnxme committed Aug 12, 2024 at 12:47 UTC 3a48b0336961e43e6f6f062bde7cecaa11043941
1 file changed +7
modules/caddyhttp/ip_range.go
+7
@@ -128,3 +128,10 @@ var (
128 _ caddyfile.Unmarshaler = (*StaticIPRange)(nil)
129 _ IPRangeSource = (*StaticIPRange)(nil)
130 )
131 +
132 +// PrivateRangesCIDR returns a list of private CIDR range
133 +// strings, which can be used as a configuration shortcut.
134 +// Note: this function is used at least by mholt/caddy-l4.
135 +func PrivateRangesCIDR() []string {
136 + return internal.PrivateRangesCIDR()
137 +}