[feature] better socket address fetching logic

This commit is contained in:
Tiago Batista Cardoso
2026-01-25 00:02:03 +01:00
parent aec686b502
commit f69629cd52
4 changed files with 300 additions and 187 deletions

View File

@@ -314,7 +314,7 @@ pub fn parse_message(
ERROR => {
if let Ok(err_received) =
String::from_utf8(received_message[LENGTH..(msg_length + LENGTH + 4)].to_vec())
String::from_utf8(received_message[LENGTH..(msg_length + LENGTH)].to_vec())
{
let err_msg = format!("Error received from peer {} : {}", ip, err_received);
let _ = cmd_tx_clone.send(NetworkEvent::Error(err_msg, "".to_owned()));