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

View file

@ -13,6 +13,7 @@ documentation = "https://docs.rs/warp-real-ip"
[dependencies]
warp = { version = "0.3" }
rfc7239 = "0.1"
ipnetwork = "~0.18"
[dev-dependencies]
tokio = { version = "1.0", features = ["macros"] }
tokio = { version = "1.0", features = ["macros"] }