Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Fix onion address type
Alexis Sellier committed 3 years ago
commit b265f1b4560d3682bcd9d17c1032ac6b18381f49
parent a47463a664afacdc8ee5df2d32842d4ce0bc8ec7
1 file changed +1 -1
modified node/src/protocol/message.rs
@@ -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),
        }
    }