mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
a better fix. puts r8446 to bed.
svn:r9096
This commit is contained in:
parent
1efd377428
commit
477438e6c7
@ -1182,8 +1182,7 @@ connection_ap_handshake_attach_circuit(edge_connection_t *conn)
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
if (!SOCKS_COMMAND_IS_RESOLVE(conn->socks_request->command) &&
|
||||
!connection_ap_can_use_exit(conn, router)) {
|
||||
if (!connection_ap_can_use_exit(conn, router)) {
|
||||
log_fn(opt ? LOG_INFO : LOG_WARN, LD_APP,
|
||||
"Requested exit point '%s' would refuse request. %s.",
|
||||
conn->chosen_exit_name, opt ? "Trying others" : "Closing");
|
||||
|
@ -2404,7 +2404,7 @@ connection_ap_can_use_exit(edge_connection_t *conn, routerinfo_t *exit)
|
||||
return 0;
|
||||
|
||||
/* Don't send DNS requests to non-exit servers by default. */
|
||||
if (policy_is_reject_star(exit->exit_policy))
|
||||
if (!conn->chosen_exit_name && policy_is_reject_star(exit->exit_policy))
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user