WIP: Remove the netifaces dependency#471
Conversation
|
This PR should go to |
|
@pimveldhuisen what's the status of this? |
|
Pff, this was a long time ago... |
|
np. we can rely on our Beta testers.... |
58c483c to
b4caf96
Compare
|
I've just rebased the pull request on the new code. Before merging the code needs some polish, mainly by having retries and error handling, but I think we should have a discussion about whether this change is conceptually a good idea first. This pull request removes the netifaces dependency, but it does not provides a direct replacement for netifaces functionality. Instead, it takes a different approach to the two tasks netifaces has:
Note that neither this solution nor the old one has support for ipv6 |
Instead use the standard 'socket' library.
This is hard to test for all kinds of NAT and network setups, and it might result in non critical failures, so it might be hard to verify.
Another option is to only use this method as a fallback when netifaces fails.