mirror of
https://github.com/zerotier/identity.git
synced 2026-05-22 16:29:03 -07:00
added conversion
This commit is contained in:
@@ -403,6 +403,11 @@ impl From<ShortAddress> for std::net::Ipv6Addr {
|
||||
std::net::Ipv6Addr::from(*value.as_bytes())
|
||||
}
|
||||
}
|
||||
impl From<&ShortAddress> for std::net::Ipv6Addr {
|
||||
fn from(value: &ShortAddress) -> Self {
|
||||
std::net::Ipv6Addr::from(*value.as_bytes())
|
||||
}
|
||||
}
|
||||
|
||||
impl crate::Address for Address {
|
||||
const SIZE: usize = 48;
|
||||
|
||||
Reference in New Issue
Block a user