diff options
author | vnxme <[email protected]> | 2024-08-07 20:02:23 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-07 11:02:23 -0600 |
commit | 59cbb2c83a03b6fe352ae0b5d05581d9148a4d24 (patch) | |
tree | 2f437bbef98830c52c5ba65e51f19f21d3aa59bb /internal | |
parent | a8b0dfa8da5616837f7e028578ddb9b7ad36b64e (diff) | |
download | caddy-59cbb2c83a03b6fe352ae0b5d05581d9148a4d24.tar.gz caddy-59cbb2c83a03b6fe352ae0b5d05581d9148a4d24.zip |
caddytls,caddyhttp: Placeholders for some TLS and HTTP matchers (#6480)
* Runtime placeholders for caddytls matchers (1/3):
- remove IPs validation in UnmarshalCaddyfile
* Runtime placeholders for caddytls matchers (2/3):
- add placeholder replacement for IPs in Provision
* Runtime placeholders for caddytls matchers (3/3):
- add placeholder replacement for other strings
* Runtime placeholders for caddyhttp matchers (1/1):
- add placeholder replacement for IPs in Provision
* Runtime placeholders for caddyhttp/caddytls matchers:
- move PrivateRandesCIDR under internal
Diffstat (limited to 'internal')
-rw-r--r-- | internal/ranges.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/ranges.go b/internal/ranges.go new file mode 100644 index 000000000..e9429e263 --- /dev/null +++ b/internal/ranges.go @@ -0,0 +1,14 @@ +package internal + +// PrivateRangesCIDR returns a list of private CIDR range +// strings, which can be used as a configuration shortcut. +func PrivateRangesCIDR() []string { + return []string{ + "192.168.0.0/16", + "172.16.0.0/12", + "10.0.0.0/8", + "127.0.0.1/8", + "fd00::/8", + "::1", + } +} |