changed the message when we receive data

This commit is contained in:
Thomas
2024-03-18 19:02:22 +01:00
parent 49821ec7a2
commit 2565f66ecc

View File

@@ -34,7 +34,7 @@ fn listen(server_address: &str, config: &Config) {
let forwarding_addr = forwarding_addr_opt.unwrap();
socket.send_to(message.as_bytes(), forwarding_addr).expect("Error forwarding message to another ip.");
}
println!("{} say: {}", src_addr.to_string(), message);
println!("{}: {}", src_addr.to_string(), message);
}
}
}