diff options
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; |