Skip to content

Commit

Permalink
chore: log when udp conn is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
igoogolx committed Feb 18, 2024
1 parent 56d10cf commit 9d5dcb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tunnel/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func handleUdpConn(ct conn.UdpConnContext) {
if err != nil {
log.Warnln(log.FormatLog(log.UdpPrefix, "fail to close local conn,err: %v"), err)
} else {
log.Infoln(log.FormatLog(log.UdpPrefix, "close local conn,err: %v"), err)
log.Infoln(log.FormatLog(log.UdpPrefix, "close local conn, remote address: %v"), ct.Metadata().RemoteAddress())
}
}()

Expand Down

0 comments on commit 9d5dcb6

Please sign in to comment.