fix: update ip of example.com
This commit is contained in:
@@ -44,9 +44,9 @@ async fn main() {
|
||||
// this can return IPv4 and/or IPv6 addresses
|
||||
let address = response.iter().next().expect("no addresses returned!");
|
||||
if address.is_ipv4() {
|
||||
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
|
||||
assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
|
||||
} else {
|
||||
assert_eq!(address, IpAddr::V6(Ipv6Addr::new(0x2606, 0x2800, 0x220, 0x1, 0x248, 0x1893, 0x25c8, 0x1946)));
|
||||
assert_eq!(address, IpAddr::V6(Ipv6Addr::new(0x2606, 0x2800, 0x21f, 0xcb07, 0x6820, 0x80da, 0xaf6b, 0x8b2c)));
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@@ -66,9 +66,9 @@
|
||||
//! // this can return IPv4 and/or IPv6 addresses
|
||||
//! let address = response.iter().next().expect("no addresses returned!");
|
||||
//! if address.is_ipv4() {
|
||||
//! assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 216, 34)));
|
||||
//! assert_eq!(address, IpAddr::V4(Ipv4Addr::new(93, 184, 215, 14)));
|
||||
//! } else {
|
||||
//! assert_eq!(address, IpAddr::V6(Ipv6Addr::new(0x2606, 0x2800, 0x220, 0x1, 0x248, 0x1893, 0x25c8, 0x1946)));
|
||||
//! assert_eq!(address, IpAddr::V6(Ipv6Addr::new(0x2606, 0x2800, 0x21f, 0xcb07, 0x6820, 0x80da, 0xaf6b, 0x8b2c)));
|
||||
//! }
|
||||
//! }
|
||||
//! ```
|
||||
|
Reference in New Issue
Block a user