From c228129e21c7d681dc1c41c513aea40743a6a7c9 Mon Sep 17 00:00:00 2001 From: mattbk Date: Wed, 1 Oct 2025 19:41:10 -0500 Subject: [PATCH] Store raw packet in db. --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index cfba167..5801044 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)?;