fix recorder clientIP

This commit is contained in:
ginuerzh committed 2024-09-15 18:37:49 +08:00
1 parent b39aa63f75
commit ce2da421fa
9 files changed
+9

No files matched your search

+1
View File
@@ -141,6 +141,7 @@ func (h *dnsHandler) Handle(ctx context.Context, conn net.Conn, opts ...handler.
Time: start,
SID: string(ctxvalue.SidFromContext(ctx)),
}
ro.ClientIP, _, _ = net.SplitHostPort(conn.RemoteAddr().String())
log := h.options.Logger.WithFields(map[string]any{
"remote": conn.RemoteAddr().String(),