diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-04-24 15:25:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-04-24 15:25:21 -0400 |
commit | f86bd1d5a4a5d71f7a529966341a37dbadd7a79f (patch) | |
tree | f2ff93a1cef73ac677ad28b313323c1c4a60ced6 /src | |
parent | 1cbde0bd504c49043fd6b4a9f09752b02cbbd908 (diff) | |
parent | 526beb7be64aaff9af6e26bde8092c8e54eb5d6d (diff) | |
download | tor-f86bd1d5a4a5d71f7a529966341a37dbadd7a79f.tar.gz tor-f86bd1d5a4a5d71f7a529966341a37dbadd7a79f.zip |
Merge remote-tracking branch 'arma/bug5623'
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index dd772b22c6..03558e557c 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -3368,8 +3368,12 @@ connection_ap_can_use_exit(const entry_connection_t *conn, const node_t *exit) } } - if (conn->socks_request->command == SOCKS_COMMAND_CONNECT && - !conn->use_begindir) { + if (conn->use_begindir) { + /* Internal directory fetches do not count as exiting. */ + return 1; + } + + if (conn->socks_request->command == SOCKS_COMMAND_CONNECT) { struct in_addr in; tor_addr_t addr, *addrp = NULL; addr_policy_result_t r; |