Skip to content

Extract default interface fetch into shared helper#144

Open
Loukky wants to merge 1 commit into
fossfreedom:masterfrom
Loukky:add-default-router
Open

Extract default interface fetch into shared helper#144
Loukky wants to merge 1 commit into
fossfreedom:masterfrom
Loukky:add-default-router

Conversation

@Loukky

@Loukky Loukky commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Deduplicate the default interface detection used by SimpleNetSensor and reuse it for NetSensor and NetCompSensor instead of each sensor iterating over all interfaces. Also remove hardcoded "enp3s0" fallback since get_default_iface returning None already covers that case.

Deduplicate the default interface detection used by SimpleNetSensor
and reuse it for NetSensor and NetCompSensor instead of each sensor
iterating over all interfaces. Also remove hardcoded "enp3s0" fallback
since get_default_iface returning None already covers that case.
@Loukky

Loukky commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

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