mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
16386a8cd1
Users can't run an anonymous client and non-anonymous single onion service at the same time. We need to know whether we have any client ports or sockets open to do this check. When determining whether a client port (SOCKS, Trans, NATD, DNS) is set, count unix sockets when counting client listeners. This has no user-visible behaviour change, because these options are set once and never read in the current tor codebase. Don't count sockets when setting ControlPort_set, that's what ControlSocket is for. (This will be reviewed in #19665.) Don't count sockets when counting server listeners, because the code that uses these options expects to count externally-visible ports. (And it would change the behaviour of Tor.)
7 lines
319 B
Plaintext
7 lines
319 B
Plaintext
o Minor bug fixes (option parsing):
|
|
- Count unix sockets when counting client listeners (SOCKS, Trans,
|
|
NATD, and DNS). This has no user-visible behaviour changes: these
|
|
options are set once, and never read.
|
|
Required for correct behaviour in ticket #17178.
|
|
Fixes bug #19677, patch by teor.
|