mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
df9b76460c
Some controllers want this so they can mess with Tor's configuration for a while via the control port before actually letting Tor out of the house. We do this with a new DisableNetwork option, that prevents Tor from making any outbound connections or binding any non-control listeners. Additionally, it shuts down the same functionality as shuts down when we are hibernating, plus the code that launches directory downloads. To make sure I didn't miss anything, I added a clause straight to connection_connect, so that we won't even try to open an outbound socket when the network is disabled. In my testing, I made this an assert, but since I probably missed something, I've turned it into a BUG warning for testing.
10 lines
392 B
Plaintext
10 lines
392 B
Plaintext
o Minor features:
|
|
|
|
- New "DisableNetwork" option to prevent Tor from launching any
|
|
connections or accepting any connections except on a control
|
|
port. Some bundles and controllers want to use this so they can
|
|
configure Tor before letting Tor talk to the rest of the
|
|
network--for example, to prevent any connections from being made
|
|
to a non-bridge address.
|
|
|