node: Fix onion address type

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier 2022-09-11 22:26:40 +02:00
parent a47463a664
commit b265f1b456
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ impl TryFrom<u8> for AddressType {
1 => Ok(AddressType::Ipv4),
2 => Ok(AddressType::Ipv6),
3 => Ok(AddressType::Hostname),
4 => Ok(AddressType::Hostname),
4 => Ok(AddressType::Onion),
_ => Err(other),
}
}