fix: cfg guard for ipv6

This commit is contained in:
Ulf Lilleengen 2023-02-10 19:38:17 +01:00
parent 128a453163
commit a2b8921ff3
Failed to extract signature

View File

@ -80,6 +80,7 @@ where
if let Some(first) = addrs.get(0) {
Ok(match first {
IpAddress::Ipv4(addr) => IpAddr::V4(addr.0.into()),
#[cfg(feature = "proto-ipv6")]
IpAddress::Ipv6(addr) => IpAddr::V6(addr.0.into()),
})
} else {