diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-29 14:53:53 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-29 14:53:53 +0000 |
commit | ae3ce7b3873e61eb4d6c273820a0cabf3e471081 (patch) | |
tree | f6ed2af567780f8eee4c3c1a23a20f4256f09a1b /src/or/circuituse.c | |
parent | 57db1c1a7dd4a1fd85fa462951737880189e5965 (diff) | |
download | tor-ae3ce7b3873e61eb4d6c273820a0cabf3e471081.tar.gz tor-ae3ce7b3873e61eb4d6c273820a0cabf3e471081.zip |
Patch from mwenge: update TrackHostExits mapping expiry times when the mappings are used, so that they expire a while after their last use, not a while after their creation.
svn:r17004
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 62ced088b5..26e956ddb2 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -1251,7 +1251,8 @@ consider_recording_trackhost(edge_connection_t *conn, origin_circuit_t *circ) /* Search the addressmap for this conn's destination. */ /* If he's not in the address map.. */ if (!options->TrackHostExits || - addressmap_have_mapping(conn->socks_request->address)) + addressmap_have_mapping(conn->socks_request->address, + options->TrackHostExitsExpire)) return; /* nothing to track, or already mapped */ SMARTLIST_FOREACH(options->TrackHostExits, const char *, cp, { |