From: Nick Mathewson Date: Mon, 13 Dec 2004 00:09:00 +0000 (+0000) Subject: Only launch dns workers when we are actually starting a server. X-Git-Tag: tor-0.0.9~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=972124aab936a9fbfd3a736c903124d89515af78;p=thirdparty%2Ftor.git Only launch dns workers when we are actually starting a server. svn:r3137 --- diff --git a/src/or/main.c b/src/or/main.c index 5404a9a0e4..aa74dfacb6 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -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."); #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 */ }