This commit is contained in:
Tiago Batista Cardoso
2026-01-24 22:32:01 +01:00
parent a3648c2116
commit 7a1155c0bd
5 changed files with 2 additions and 2 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)].to_vec())
String::from_utf8(received_message[LENGTH..(msg_length + LENGTH + 4)].to_vec())
{
let err_msg = format!("Error received from peer {} : {}", ip, err_received);
let _ = cmd_tx_clone.send(NetworkEvent::Error(err_msg));