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

This commit is contained in:
vnxme 2024-08-12 12:47:05 +03:00 committed by GitHub
parent 7cf8376e63
commit 3a48b03369
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -128,3 +128,10 @@ var (
_ caddyfile.Unmarshaler = (*StaticIPRange)(nil) _ caddyfile.Unmarshaler = (*StaticIPRange)(nil)
_ IPRangeSource = (*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()
}