mirror of
https://github.com/zerotier/identity.git
synced 2026-05-22 16:29:03 -07:00
added conversion
This commit is contained in:
@@ -398,6 +398,13 @@ impl<'de> Deserialize<'de> for ShortAddress {
|
||||
}
|
||||
}
|
||||
|
||||
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