switch from ipnetwork to ipnet

This commit is contained in:
Robin Appelman 2024-11-29 19:43:06 +01:00
commit 86341fa1b7
4 changed files with 14 additions and 75 deletions

View file

@ -9,8 +9,7 @@ See the [crate documentation](https://docs.rs/real-ip) for more details and exam
```rust
use http::Request;
use std::net::IpAddr;
use ipnetwork::IpNetwork;
use real_ip::real_ip;
use real_ip::{real_ip, IpNet};
// in a real program this info would of course come from the http server
let incoming_ip = IpAddr::from([10, 0, 0, 1]);