mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Only launch dns workers when we are actually starting a server.
svn:r3137
This commit is contained in:
parent
9a1563a159
commit
972124aab9
@ -1097,7 +1097,8 @@ static int tor_init(int argc, char *argv[]) {
|
|||||||
log_fn(LOG_WARN,"You are running Tor as root. You don't need to, and you probably shouldn't.");
|
log_fn(LOG_WARN,"You are running Tor as root. You don't need to, and you probably shouldn't.");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (server_mode(get_options())) { /* only spawn dns handlers if we're a router */
|
/* only spawn dns handlers if we're a router */
|
||||||
|
if (server_mode(get_options()) && get_options()->command == CMD_RUN_TOR) {
|
||||||
dns_init(); /* initialize the dns resolve tree, and spawn workers */
|
dns_init(); /* initialize the dns resolve tree, and spawn workers */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user