mirror of
https://github.com/Noratrieb/pretense.git
synced 2026-01-14 16:15:02 +01:00
Log port
This commit is contained in:
parent
da9a1de1bd
commit
5336e513ba
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ async fn listen_port(port: u16) -> Result<()> {
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let (conn, addr) = listener.accept().await.wrap_err("failed to accept port")?;
|
let (conn, addr) = listener.accept().await.wrap_err("failed to accept port")?;
|
||||||
tracing::info!(remote_ip = ?addr.ip(), remote_port = ?addr.port(), "Received connection");
|
tracing::info!(remote_ip = ?addr.ip(), remote_port = ?addr.port(), ?port, "Received connection");
|
||||||
counter.increment(1);
|
counter.increment(1);
|
||||||
drop(conn);
|
drop(conn);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue