diff options
author | Roger Dingledine <arma@torproject.org> | 2003-11-16 17:00:02 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-11-16 17:00:02 +0000 |
commit | fe856406bea6f759a38e25c5f64e133c2631d2a6 (patch) | |
tree | fac6570798bc9502cac2e37b22caf52dd1ecc218 /src/or/main.c | |
parent | 8a17d9e5d37dba660f35affc070cdf23bb22b1bd (diff) | |
download | tor-fe856406bea6f759a38e25c5f64e133c2631d2a6.tar tor-fe856406bea6f759a38e25c5f64e133c2631d2a6.tar.gz |
initial patches on patches
svn:r814
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 847b4ce80..ce6d22b17 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -802,6 +802,9 @@ int tor_main(int argc, char *argv[]) { if(options.OnionRouter) { /* only spawn dns handlers if we're a router */ dns_init(); /* initialize the dns resolve tree, and spawn workers */ } + if(options.SocksPort) { + client_dns_init(); /* init the client dns cache */ + } #ifndef MS_WINDOWS /* do signal stuff only on unix */ signal (SIGINT, catch); /* catch kills so we can exit cleanly */ |