diff options
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 */ |