aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-11-16 17:00:02 +0000
committerRoger Dingledine <arma@torproject.org>2003-11-16 17:00:02 +0000
commitfe856406bea6f759a38e25c5f64e133c2631d2a6 (patch)
treefac6570798bc9502cac2e37b22caf52dd1ecc218 /src/or/main.c
parent8a17d9e5d37dba660f35affc070cdf23bb22b1bd (diff)
downloadtor-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.c3
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 */