mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
print a statement when the first circ is finished,
so the user knows it's working svn:r1179
This commit is contained in:
parent
4716d4d871
commit
ef5f917e9e
@ -1077,6 +1077,8 @@ int circuit_extend(cell_t *cell, circuit_t *circ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern int has_completed_circuit;
|
||||
|
||||
int circuit_finish_handshake(circuit_t *circ, char *reply) {
|
||||
unsigned char iv[16];
|
||||
unsigned char keys[40+32];
|
||||
@ -1128,6 +1130,10 @@ int circuit_finish_handshake(circuit_t *circ, char *reply) {
|
||||
|
||||
hop->state = CPATH_STATE_OPEN;
|
||||
log_fn(LOG_INFO,"finished");
|
||||
if(!has_completed_circuit) {
|
||||
has_completed_circuit=1;
|
||||
log_fn(LOG_WARN,"Tor has successfully opened a circuit. Looks like it's working.");
|
||||
}
|
||||
circuit_log_path(LOG_INFO,circ);
|
||||
return 0;
|
||||
}
|
||||
|
@ -472,6 +472,7 @@ static int do_hup(void) {
|
||||
char keydir[512];
|
||||
|
||||
log_fn(LOG_WARN,"Received sighup. Reloading config.");
|
||||
has_completed_circuit=0;
|
||||
/* first, reload config variables, in case they've changed */
|
||||
/* no need to provide argc/v, they've been cached inside init_from_config */
|
||||
if (init_from_config(0, NULL) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user