mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
For missing transport, say "PT_MISSING" not "NO_ROUTE"
This commit is contained in:
parent
754a50592c
commit
90341b4852
@ -1198,7 +1198,7 @@ connection_or_connect(const tor_addr_t *_addr, uint16_t port,
|
|||||||
|
|
||||||
control_event_bootstrap_problem(
|
control_event_bootstrap_problem(
|
||||||
"Can't connect to bridge",
|
"Can't connect to bridge",
|
||||||
END_OR_CONN_REASON_NO_ROUTE,
|
END_OR_CONN_REASON_PT_MISSING,
|
||||||
conn);
|
conn);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -604,7 +604,8 @@ typedef enum {
|
|||||||
#define END_OR_CONN_REASON_NO_ROUTE 6 /* no route to host/net */
|
#define END_OR_CONN_REASON_NO_ROUTE 6 /* no route to host/net */
|
||||||
#define END_OR_CONN_REASON_IO_ERROR 7 /* read/write error */
|
#define END_OR_CONN_REASON_IO_ERROR 7 /* read/write error */
|
||||||
#define END_OR_CONN_REASON_RESOURCE_LIMIT 8 /* sockets, buffers, etc */
|
#define END_OR_CONN_REASON_RESOURCE_LIMIT 8 /* sockets, buffers, etc */
|
||||||
#define END_OR_CONN_REASON_MISC 9
|
#define END_OR_CONN_REASON_PT_MISSING 9 /* PT failed or not available */
|
||||||
|
#define END_OR_CONN_REASON_MISC 10
|
||||||
|
|
||||||
/* Reasons why we (or a remote OR) might close a stream. See tor-spec.txt for
|
/* Reasons why we (or a remote OR) might close a stream. See tor-spec.txt for
|
||||||
* documentation of these. The values must match. */
|
* documentation of these. The values must match. */
|
||||||
|
@ -231,6 +231,8 @@ orconn_end_reason_to_control_string(int r)
|
|||||||
return "RESOURCELIMIT";
|
return "RESOURCELIMIT";
|
||||||
case END_OR_CONN_REASON_MISC:
|
case END_OR_CONN_REASON_MISC:
|
||||||
return "MISC";
|
return "MISC";
|
||||||
|
case END_OR_CONN_REASON_PT_MISSING:
|
||||||
|
return "PT_MISSING";
|
||||||
case 0:
|
case 0:
|
||||||
return "";
|
return "";
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user