wip nattraversal

This commit is contained in:
TIBERGHIEN corentin
2026-01-16 01:12:52 +01:00
parent 29c67e340c
commit 14fa256f9c
3 changed files with 18 additions and 10 deletions

View File

@@ -290,8 +290,7 @@ pub fn parse_message(
constructed_message = construct_message(OK, Vec::new(), id, crypto_pair);
let ilength = u16::from_be_bytes(length_bytes);
let received_address =
&received_message[LENGTH + EXTENSIONS..LENGTH + ilength as usize];
let received_address = &received_message[LENGTH..LENGTH + ilength as usize];
let address = String::from_utf8(received_address.to_vec()).expect("wrong name");
let pingreq = construct_message(PING, Vec::new(), id, crypto_pair);