Skip to content

Add function to get default network interface#142

Merged
fossfreedom merged 2 commits into
fossfreedom:masterfrom
Loukky:patch-1
May 21, 2026
Merged

Add function to get default network interface#142
fossfreedom merged 2 commits into
fossfreedom:masterfrom
Loukky:patch-1

Conversation

@Loukky
Copy link
Copy Markdown
Contributor

@Loukky Loukky commented May 11, 2026

Fix an issue where network throughput is double-counted in proxy or VPN environments.

When traffic is routed through proxy tools (e.g., v2ray or similar transparent proxy setups), packets may be observed on multiple interfaces, causing aggregated per-interface counters to over-report actual bandwidth usage.

This change ensures that only the default routing interface is used for measurement.

Comment thread sysmonitor_common/sensors.py Outdated
@fossfreedom fossfreedom merged commit 382033b into fossfreedom:master May 21, 2026
@Loukky Loukky deleted the patch-1 branch May 21, 2026 17:46
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