diff options
author | vnxme <[email protected]> | 2024-08-12 12:47:05 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-12 05:47:05 -0400 |
commit | 3a48b0336961e43e6f6f062bde7cecaa11043941 (patch) | |
tree | bb4283e60d615dfd1bbbeeaeb2322293d2435e3e | |
parent | 7cf8376e638948490be3e9eb5c7d58ce2a4b93b3 (diff) | |
download | caddy-3a48b0336961e43e6f6f062bde7cecaa11043941.tar.gz caddy-3a48b0336961e43e6f6f062bde7cecaa11043941.zip |
Move PrivateRangesCIDR() back: add a pass-through function (#6514)
-rw-r--r-- | modules/caddyhttp/ip_range.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/caddyhttp/ip_range.go b/modules/caddyhttp/ip_range.go index 7632e460c..bfd76c14c 100644 --- a/modules/caddyhttp/ip_range.go +++ b/modules/caddyhttp/ip_range.go @@ -128,3 +128,10 @@ var ( _ caddyfile.Unmarshaler = (*StaticIPRange)(nil) _ IPRangeSource = (*StaticIPRange)(nil) ) + +// PrivateRangesCIDR returns a list of private CIDR range +// strings, which can be used as a configuration shortcut. +// Note: this function is used at least by mholt/caddy-l4. +func PrivateRangesCIDR() []string { + return internal.PrivateRangesCIDR() +} |