Skip to content

Commit

Permalink
Remove the host name part of a dynamic name
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Apr 2, 2022
1 parent 7634fde commit 6eebc03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/handshake.rs
Expand Up @@ -148,6 +148,8 @@ where
let n = u64::from(bytes.read_u16::<BigEndian>()?);
let mut name = String::new();
bytes.take(n).read_to_string(&mut name)?;
let node_name: NodeName = name.parse()?;
let name = node_name.name().to_owned();

let creation = Creation::new(bytes.read_u32::<BigEndian>()?);
HandshakeStatus::Named { name, creation }
Expand Down

0 comments on commit 6eebc03

Please sign in to comment.