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

feature: Add network interface filtering #381

Merged
merged 5 commits into from
Jan 1, 2021

Conversation

ClementTsang
Copy link
Owner

@ClementTsang ClementTsang commented Jan 1, 2021

Description

A description of the change and what it does. If relevant, please provide screenshots of what results from the change:

Adds a new option in the config file to filter out network interfaces. Also add the option to filter by whole words.

Interface follows that of the existing ones:

[net_filter]
is_list_ignored = false
list = ["virbr0.*"]
regex = true
case_sensitive = false
whole_word = false

Issue

If applicable, what issue does this address?

Closes: #279

Type of change

Remove the irrelevant ones:

  • New feature (non-breaking change which adds functionality)

Test methodology

If relevant, please state how this was tested:

Furthermore, please tick which platforms this change was tested on:

  • Windows
  • macOS
  • Linux

If relevant, all of these platforms should be tested.

Checklist

If relevant, ensure the following have been met:

  • Change has been tested to work, and does not cause new breakage unless intended
  • Code has been self-reviewed
  • Documentation has been added/updated if needed (README, help menu, etc.)
  • Passes CI pipeline (clippy check and cargo test check)
  • Areas your change affects have been linted using rustfmt (cargo fmt)
  • No merge conflicts arise from the change

Other information

Provide any other relevant information to this change:

@ClementTsang ClementTsang merged commit 90be973 into master Jan 1, 2021
@ClementTsang ClementTsang deleted the allow_ignoring_net_interfaces branch January 1, 2021 23:09
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.

Feature request: Add network interface filter
1 participant