mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 08:44:29 +00:00
feat: enhance error logging
This commit is contained in:
parent
377ac7b0bb
commit
113a55f94d
@ -88,7 +88,7 @@ func (s *Server) HandleClient(client net.Conn) {
|
||||
addr, err := base.GetOriginalDstAddr(client)
|
||||
if err != nil {
|
||||
_ = client.Close()
|
||||
slog.Error("base.GetOriginalDstAddr", slog.Any("error", err))
|
||||
slog.Error("base.GetOriginalDstAddr", slog.Any("error", err), slog.String("client", client.RemoteAddr().String()))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user