[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3486: Delegate responsibility for figuring out local network configuration to `netifaces`
Tahoe-LAFS
trac at tahoe-lafs.org
Fri Oct 23 12:54:01 UTC 2020
#3486: Delegate responsibility for figuring out local network configuration to
`netifaces`
---------------------+---------------------------
Reporter: exarkun | Owner: exarkun
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: unknown | Version: n/a
Keywords: | Launchpad Bug:
---------------------+---------------------------
`allmydata.util.iputil` has a lot of code for trying to figure out what
network addresses are locally assigned. This involves finding and running
various child processes and scraping information from their output.
This code is somewhat complex and unnecessarily slow (due to launching new
processes). It also fails if it cannot find any of these external
helpers.
The well-established `netifaces` Python package provides the same
functionality behind a much simpler interface.
Replace the current complex code with something simpler using `netifaces`.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3486>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list