[tor-bugs] #16372 [Tor]: tor uses getaddrinfo even if DisableNetwork is set

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Jun 14 19:59:01 UTC 2015


#16372: tor uses getaddrinfo even if DisableNetwork is set
--------------------+----------------------------------
 Reporter:  teor    |          Owner:
     Type:  defect  |         Status:  new
 Priority:  minor   |      Milestone:  Tor: 0.2.???
Component:  Tor     |        Version:  Tor: unspecified
 Keywords:  lorax   |  Actual Points:
Parent ID:  #16366  |         Points:
--------------------+----------------------------------
 If DisableNetwork is set, but tor is passed a textual (?) address in a
 `*Port` config line, it uses `getaddrinfo` to lookup the address. This can
 access the network and cause config parsing to hang. (See #16366.)

 The documentation for DisableNetwork could be clearer about this - that
 tor *will* make certain network-related calls as part of its config
 process, even if DisableNetwork is set.

 If the config uses names that need to be looked up using the network, this
 also means the external network needs to be up for config parsing to
 succeed. (Which seems like an unexpected dependency.)

 So DisableNetwork may not be able to be used as described (implied?) - for
 a controller to setup the config while the network is down, then re-enable
 tor networking when the network comes up.

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


More information about the tor-bugs mailing list