mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
don't mark the helper node as down when we fail to connect to
our https proxy. svn:r5566
This commit is contained in:
parent
9c01fa3d59
commit
dded1dd8bd
@ -442,9 +442,12 @@ connection_or_connect(uint32_t addr, uint16_t port, const char *id_digest)
|
||||
|
||||
switch (connection_connect(conn, conn->address, addr, port)) {
|
||||
case -1:
|
||||
if (!options->HttpsProxy)
|
||||
if (!options->HttpsProxy) {
|
||||
/* If the connection failed immediately, our https proxy
|
||||
* is down. Don't blame the Tor server. */
|
||||
router_mark_as_down(conn->identity_digest);
|
||||
helper_node_set_status(conn->identity_digest, 0);
|
||||
helper_node_set_status(conn->identity_digest, 0);
|
||||
}
|
||||
control_event_or_conn_status(conn, OR_CONN_EVENT_FAILED);
|
||||
connection_free(conn);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user