Allow $private HTTP rule to block any private IP

This is a little magic compared with our previous approach of "list
every private IP range", but given then the sheer number we were
missing[1][2] this feels more reasonable.

Also refactor out some of the logic into separate classes, hopefully to
make things a little cleaner.
This commit is contained in:
Jummit committed 2021-05-14 21:31:03 +02:00
1 parent 3575654d02
commit d5eb82db60
7 files changed
+212 -149

No files matched your search

+7
View File
@@ -408,3 +408,10 @@ Remove <!-- -->s in usages
Added documentation for global functions (#592)
```
Didn't port the docs over.
```
d83a68f3ff6e3833278a38798d06215293656e85
Allow $private HTTP rule to block any private IP
```
The config still uses a `blacklist` and `whitelist` array.