diff --git a/proxy/socks/server.go b/proxy/socks/server.go index 576387c7..e1d34a60 100644 --- a/proxy/socks/server.go +++ b/proxy/socks/server.go @@ -234,8 +234,8 @@ func (s *Server) handleUDPPayload(ctx context.Context, conn stat.Connection, dis newInbound.Source = net.DestinationFromAddr(conn.RemoteAddr()) newInbound.Local = net.DestinationFromAddr(conn.LocalAddr()) inbound = &newInbound - ctx = session.ContextWithInbound(ctx, &newInbound) - errors.LogInfo(ctx, "client UDP connection from ", newInbound.Source) + ctx = session.ContextWithInbound(ctx, inbound) + errors.LogInfo(ctx, "client UDP connection from ", inbound.Source) } })