diff options
author | Roger Dingledine <arma@torproject.org> | 2004-02-29 03:52:38 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-02-29 03:52:38 +0000 |
commit | ef5f917e9eefcfd2e3855350120117384af0ce74 (patch) | |
tree | 00d63178339a44cf3ebae08b2c89fe4599f242b5 | |
parent | 4716d4d8715f25ed2536f3c6fb35e5d3392669c4 (diff) | |
download | tor-ef5f917e9eefcfd2e3855350120117384af0ce74.tar.gz tor-ef5f917e9eefcfd2e3855350120117384af0ce74.zip |
print a statement when the first circ is finished,
so the user knows it's working
svn:r1179
-rw-r--r-- | src/or/circuit.c | 6 | ||||
-rw-r--r-- | src/or/main.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c index ae2e77b8c6..59e046988c 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -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; } diff --git a/src/or/main.c b/src/or/main.c index 07a0d30158..b80ac9cd7e 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -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) { |