mirror of
https://gitea.farpn.net/w1cdn/farpn_udp_server.git
synced 2025-10-13 21:18:42 -05:00
Store raw packet in db.
This commit is contained in:
@ -32,6 +32,8 @@ fn main() -> std::io::Result<()> {
|
|||||||
String::from_utf8_lossy(&buffer[..bytes_received])
|
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
|
// Echo the data back to the client
|
||||||
socket.send_to(&buffer[..bytes_received], src_addr)?;
|
socket.send_to(&buffer[..bytes_received], src_addr)?;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user