fix: cfg guard for ipv6
This commit is contained in:
parent
128a453163
commit
a2b8921ff3
@ -80,6 +80,7 @@ where
|
|||||||
if let Some(first) = addrs.get(0) {
|
if let Some(first) = addrs.get(0) {
|
||||||
Ok(match first {
|
Ok(match first {
|
||||||
IpAddress::Ipv4(addr) => IpAddr::V4(addr.0.into()),
|
IpAddress::Ipv4(addr) => IpAddr::V4(addr.0.into()),
|
||||||
|
#[cfg(feature = "proto-ipv6")]
|
||||||
IpAddress::Ipv6(addr) => IpAddr::V6(addr.0.into()),
|
IpAddress::Ipv6(addr) => IpAddr::V6(addr.0.into()),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user