diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-08-05 20:28:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-08-05 20:28:03 +0000 |
commit | 9855c1d06f34d3e4a8dd75fe1a570f7af8ddba7b (patch) | |
tree | 832b2f95b196346a2d18d62d1a41057a0efa739f /src | |
parent | 645cbd690b3c97452846aa360729773c76ff3b52 (diff) | |
download | tor-9855c1d06f34d3e4a8dd75fe1a570f7af8ddba7b.tar tor-9855c1d06f34d3e4a8dd75fe1a570f7af8ddba7b.tar.gz |
r17645@31-33-44: nickm | 2008-08-05 16:28:01 -0400
Make unspecified addresses also cause connection_is_rate_limited to say 0.
svn:r16437
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index c415af898..cf00f90ee 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -1459,7 +1459,9 @@ retry_all_listeners(smartlist_t *replaced_conns, static int connection_is_rate_limited(connection_t *conn) { - if (conn->linked || tor_addr_is_internal(&conn->addr, 0)) + if (conn->linked || /* internal connection */ + tor_addr_family(&conn->addr) == AF_UNSPEC || /* no address */ + tor_addr_is_internal(&conn->addr, 0)) /* internal address */ return 0; else return 1; |