diff options
author | Roger Dingledine <arma@torproject.org> | 2005-02-22 00:53:08 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-02-22 00:53:08 +0000 |
commit | 8727acf2f1e3d385588fcd0a99661e6db15ba152 (patch) | |
tree | c5843496c7e509c344c6477662e07f5e5b804087 /src/or/main.c | |
parent | b5bddd8cfdeff71fcc04553bfd8a1049ee8e90e6 (diff) | |
download | tor-8727acf2f1e3d385588fcd0a99661e6db15ba152.tar.gz tor-8727acf2f1e3d385588fcd0a99661e6db15ba152.zip |
Add a new AddressMap directive to rewrite incoming socks addresses.
Add a new TrackHostExits directive to trigger addressmaps for
certain incoming socks addresses, for sites that break when your exit
keeps changing.
Redo the client-side dns cache so it's just an addressmap too.
svn:r3641
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index 184bfa3308..dbc81c3a2a 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1263,7 +1263,7 @@ static int tor_init(int argc, char *argv[]) { rep_hist_init(); /* Initialize the service cache. */ rend_cache_init(); - client_dns_init(); /* Init the client dns cache. Do it always, since it's cheap. */ + addressmap_init(); /* Init the client dns cache. Do it always, since it's cheap. */ /* give it somewhere to log to initially */ add_temp_log(); @@ -1308,7 +1308,7 @@ void tor_free_all(void) { routerlist_free_current(); free_trusted_dir_servers(); - client_dns_free_all(); + addressmap_free_all(); free_socks_policy(); free_dir_policy(); dirserv_free_all(); |