diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-12-13 00:09:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-12-13 00:09:00 +0000 |
commit | 972124aab936a9fbfd3a736c903124d89515af78 (patch) | |
tree | c5d48e94dbfbe63e713548a1644f54ba1e315561 /src | |
parent | 9a1563a15975e663e7db5155f2bbe7cb47186c25 (diff) | |
download | tor-972124aab936a9fbfd3a736c903124d89515af78.tar tor-972124aab936a9fbfd3a736c903124d89515af78.tar.gz |
Only launch dns workers when we are actually starting a server.
svn:r3137
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 5404a9a0e..aa74dfacb 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 */ } |