mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
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
This commit is contained in:
parent
645cbd690b
commit
9855c1d06f
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue