mirror of
https://codeberg.org/icewind/real-ip.git
synced 2026-10-01 09:04:12 +02:00
switch from ipnetwork to ipnet
This commit is contained in:
parent
adb46b46f4
commit
86341fa1b7
4 changed files with 14 additions and 75 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue