mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
fix regression introduced by 1a65bdd2
noticed while reviewing hoganrobert/bug1138
This commit is contained in:
parent
608d1614b9
commit
b4942e3435
6
changes/1a65bdd2-regression
Normal file
6
changes/1a65bdd2-regression
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
o Minor bugfixes:
|
||||||
|
- Fix a regression introduced in 0.2.2.7-alpha that marked relays
|
||||||
|
down if a directory fetch fails and you've configured either
|
||||||
|
bridges or EntryNodes. The intent was to mark the relay as down
|
||||||
|
_unless_ you're using bridges or EntryNodes, since if you are
|
||||||
|
then you could quickly run out of entry points.
|
@ -582,7 +582,7 @@ connection_dir_request_failed(dir_connection_t *conn)
|
|||||||
if (directory_conn_is_self_reachability_test(conn)) {
|
if (directory_conn_is_self_reachability_test(conn)) {
|
||||||
return; /* this was a test fetch. don't retry. */
|
return; /* this was a test fetch. don't retry. */
|
||||||
}
|
}
|
||||||
if (entry_list_is_constrained(get_options()))
|
if (!entry_list_is_constrained(get_options()))
|
||||||
router_set_status(conn->identity_digest, 0); /* don't try him again */
|
router_set_status(conn->identity_digest, 0); /* don't try him again */
|
||||||
if (conn->_base.purpose == DIR_PURPOSE_FETCH_V2_NETWORKSTATUS) {
|
if (conn->_base.purpose == DIR_PURPOSE_FETCH_V2_NETWORKSTATUS) {
|
||||||
log_info(LD_DIR, "Giving up on directory server at '%s'; retrying",
|
log_info(LD_DIR, "Giving up on directory server at '%s'; retrying",
|
||||||
|
Loading…
Reference in New Issue
Block a user