From b265f1b4560d3682bcd9d17c1032ac6b18381f49 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Sun, 11 Sep 2022 22:26:40 +0200 Subject: [PATCH] node: Fix onion address type Signed-off-by: Alexis Sellier --- node/src/protocol/message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/src/protocol/message.rs b/node/src/protocol/message.rs index 85bb04a6..91b76345 100644 --- a/node/src/protocol/message.rs +++ b/node/src/protocol/message.rs @@ -82,7 +82,7 @@ impl TryFrom for AddressType { 1 => Ok(AddressType::Ipv4), 2 => Ok(AddressType::Ipv6), 3 => Ok(AddressType::Hostname), - 4 => Ok(AddressType::Hostname), + 4 => Ok(AddressType::Onion), _ => Err(other), } }