mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
We are an OR if ORPort *or* ORBindAddress is set; similarly for being an OP
svn:r2237
This commit is contained in:
parent
416653271a
commit
e19af3fa0f
1 changed files with 2 additions and 2 deletions
|
@ -465,7 +465,7 @@ int clique_mode(void) {
|
|||
/** Return true iff we are trying to be a server.
|
||||
*/
|
||||
int server_mode(void) {
|
||||
return (options.ORPort != 0);
|
||||
return (options.ORPort != 0 || options.ORBindAddress);
|
||||
}
|
||||
|
||||
/** Remember if we've advertised ourselves to the dirservers. */
|
||||
|
@ -479,7 +479,7 @@ int advertised_server_mode(void) {
|
|||
|
||||
/** Return true iff we are trying to be a socks proxy. */
|
||||
int proxy_mode(void) {
|
||||
return (options.SocksPort != 0);
|
||||
return (options.SocksPort != 0 || options.SocksBindAddress);
|
||||
}
|
||||
|
||||
/** Perform regular maintenance tasks. This function gets run once per
|
||||
|
|
Loading…
Add table
Reference in a new issue