Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send keys and status info periodically to panel #594

Merged
merged 3 commits into from
May 16, 2022

Conversation

JohaoRosasRosillo
Copy link
Contributor

No description provided.

lib/agent/plugins/control-panel/index.js Show resolved Hide resolved
@@ -100,10 +110,39 @@ function handle_response(what, err, resp) {
commands.process(resp.body);
}

var compatible_with_module_tpm = function (data) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this function could be defined in a more global context to be available to other parts of the project

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

if (err) return new Error('Error to get os_edition informaton');
data.os_edition = os_edition;
system.get_winsvc_version(function(err, winsvc_version) {
if (err) return new Error('Error to get winsvc_version informaton');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (err) return new Error('Error to get winsvc_version informaton');
if (err) return new Error('Error to get winsvc_version information');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

let data = {};
if(os_name == 'windows'){
system.get_os_edition(function(err, os_edition) {
if (err) return new Error('Error to get os_edition informaton');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (err) return new Error('Error to get os_edition informaton');
if (err) return new Error('Error to get os_edition information');

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@SoraKenji SoraKenji merged commit 8cdef5b into master May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants