Skip to content

Conversation

@pichuang
Copy link

@pichuang pichuang commented Oct 3, 2024

This pull request to the deadman file includes changes to improve the readability of regular expressions, add a new configuration validation function, and ensure the configuration is validated before running the main program logic.

Code readability improvements:

  • deadman: Updated regular expressions to use raw string notation for better readability. ([deadmanL735-R738](https://github.com/upa/deadman/pull/26/files#diff-4a173307c12a52d82e6ad896a4dedcfb3b98c2724f557579c73a309d49d04413L735-R738))

New functionality:

  • deadman: Integrated the new parse_and_validate_config function to validate the configuration file before running the main program logic. ([deadmanR868-R870](https://github.com/upa/deadman/pull/26/files#diff-4a173307c12a52d82e6ad896a4dedcfb3b98c2724f557579c73a309d49d04413R868-R870))
  • deadman: Added a new parse_and_validate_config function to check for hping3 and root privileges based on the configuration file content. ([deadmanR804-R824](https://github.com/upa/deadman/pull/26/files#diff-4a173307c12a52d82e6ad896a4dedcfb3b98c2724f557579c73a309d49d04413R804-R824))

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.

1 participant