Skip to content

Add IfPredicate for more flexible interface filtering#474

Merged
keepsimple1 merged 2 commits into
keepsimple1:mainfrom
MAlba124:custom-iface-filter
Jun 21, 2026
Merged

Add IfPredicate for more flexible interface filtering#474
keepsimple1 merged 2 commits into
keepsimple1:mainfrom
MAlba124:custom-iface-filter

Conversation

@MAlba124

Copy link
Copy Markdown
Contributor

We want to disable interfaces based on a regex, this isn't possible with the current IfKind API. Let me know if this feature is wanted and if the additional API is ok.

@keepsimple1 keepsimple1 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for your PR! Overall it makes sense to me. A couple of comments inline, and can you please add a test?

Comment thread src/service_daemon.rs Outdated
Comment thread src/service_daemon.rs Outdated
Comment thread src/service_info.rs
@MAlba124 MAlba124 force-pushed the custom-iface-filter branch from 9123c11 to 5166792 Compare June 20, 2026 14:23
@MAlba124 MAlba124 changed the title Add CustomIfKind for more flexible interface filtering Add IfPredicate for more flexible interface filtering Jun 20, 2026

@keepsimple1 keepsimple1 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks good! A couple of new nitpicks inline. Thanks!

Comment thread src/service_daemon.rs Outdated
Comment thread src/service_daemon.rs
@MAlba124 MAlba124 force-pushed the custom-iface-filter branch from 5166792 to 7523ce8 Compare June 21, 2026 08:42
@keepsimple1 keepsimple1 merged commit fd72146 into keepsimple1:main Jun 21, 2026
3 checks passed
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.

2 participants