log connections

This commit is contained in:
soruh 2023-03-20 15:55:07 +01:00
parent eb2f66a7b6
commit 894080500b

View File

@ -228,6 +228,12 @@ async fn connect(
client: &mut TcpStream,
caller: &mut TcpStream,
) -> eyre::Result<()> {
info!(
client_addr = print_addr(client),
caller_addr = print_addr(caller),
"connecting clients"
);
packet.header = Header {
kind: PacketKind::Reject.raw(),
length: 4,