Store raw packet in db.

This commit is contained in:
mattbk
2025-10-01 19:41:10 -05:00
parent 0261369e7b
commit c228129e21

View File

@ -31,6 +31,8 @@ fn main() -> std::io::Result<()> {
src_addr,
String::from_utf8_lossy(&buffer[..bytes_received])
);
let _ = insert_packet(&String::from_utf8_lossy(&buffer[..bytes_received]), 1);
// Echo the data back to the client
socket.send_to(&buffer[..bytes_received], src_addr)?;