[tor-bugs] #12376 [Tor]: Refactor and unit-test all the code that looks at network interfaces to get current IP

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jun 11 18:43:16 UTC 2014


#12376: Refactor and unit-test all the code that looks at network interfaces to get
current IP
-------------------------+----------------------------------
 Reporter:  rl1987       |          Owner:
     Type:  enhancement  |         Status:  new
 Priority:  normal       |      Milestone:
Component:  Tor          |        Version:  Tor: unspecified
 Keywords:  refactoring  |  Actual Points:
Parent ID:               |         Points:
-------------------------+----------------------------------
 Right now Tor has large hairy functions such as `get_interface_address6()`
 and `get_interface_addresses_raw()` that attempt to use system-specific
 API to try and get an IP address of network interface Tor instance is
 currently using. They should be refactored to improve code readability and
 maintainability. Also, we need to make sure there are unit tests for this
 kind of code.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12376>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list