Allow specifying IP networks for permitted proxies in place of IP addresses.

This commit is contained in:
Moriyoshi Koizumi 2021-07-12 09:53:29 +09:00
commit c6af4e7ae9
4 changed files with 45 additions and 5 deletions

10
Cargo.lock generated
View file

@ -378,6 +378,15 @@ dependencies = [
"bytes",
]
[[package]]
name = "ipnetwork"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4088d739b183546b239688ddbc79891831df421773df95e236daf7867866d355"
dependencies = [
"serde",
]
[[package]]
name = "itoa"
version = "0.4.7"
@ -1088,6 +1097,7 @@ dependencies = [
name = "warp-real-ip"
version = "0.2.0"
dependencies = [
"ipnetwork",
"rfc7239",
"tokio",
"warp",