Repository navigation
fix: skip adapter scan for interface lists with no IPv6 entries - #1919
Conversation
|
Thanks for contributing! A quick note: this project is in the process of moving from LGPL-2.1 to Apache 2.0, and may keep LGPL-2.1-or-later as an OR option so GPL-2.0-only projects can keep using the library, see #1835. By continuing with this pull request you agree that this new contribution is offered under both Apache 2.0 and LGPL-2.1-or-later, so it is covered under either outcome. This notice does not affect your previous contributions. If you would like to consent to relicensing those as well, please post the consent statement on #1835; silence is never treated as consent for past work. If offering this contribution under these licenses does not work for you, no hard feelings; reply with the exact phrase |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1919 +/- ##
=======================================
Coverage 99.87% 99.87%
=======================================
Files 33 33
Lines 3911 3913 +2
Branches 568 568
=======================================
+ Hits 3906 3908 +2
Misses 3 3
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
|
bluetoothbot
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
PR Review — fix: skip adapter scan for interface lists with no IPv6 entriesReady to merge. Both suggestions from the previous review are fixed at Strengths:
Previous findings:
✅ Resolved since last review (2)Previously-flagged issues verified fixed
Checklist
Automated review by Kōan (Claude) |
bluetoothbot
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
|
merged after pypi outage clears |
Summary
An explicit
interfaceslist always scanned the adapters withifaddr.get_adapters(), even when it only held IPv4 addresses and the result was never used. The scan is blocking and runs on the event loop, so it is now only done once the list has an interface index or an IPv6 address.Fixes #1917
Test plan
New tests in
tests/utils/test_net.pycheck that an IPv4 only list does not scan the adapters, and that a mixed list scans them once.