From 435d2d8fdef51bf3ce6456c2d22d7a10000918f4 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 22 Aug 2005 05:46:02 +0000 Subject: [PATCH] when we begin reachability testing, log the address:port for each port we're testing, so people are more likely to notice that they're using the wrong ip address. svn:r4808 --- src/or/circuitbuild.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index c905e93567..180452f905 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -531,12 +531,18 @@ circuit_send_next_onion_skin(circuit_t *circ) if (!has_completed_circuit) { or_options_t *options = get_options(); has_completed_circuit=1; - log(LOG_NOTICE,"Tor has successfully opened a circuit. Looks like it's working."); /* XXX009 Log a count of known routers here */ - if (server_mode(options) && !check_whether_orport_reachable()) - log(LOG_NOTICE,"Now checking whether ORPort %s%s reachable... (this may take several minutes)", - options->DirPort ? "and DirPort " : "", + log(LOG_NOTICE,"Tor has successfully opened a circuit. Looks like it's working."); + if (server_mode(options) && !check_whether_orport_reachable()) { + char dirbuf[128]; + if (options->DirPort) + tor_snprintf(dirbuf, sizeof(dirbuf), " and DirPort %s:%d ", + options->Address, options->DirPort); + log(LOG_NOTICE,"Now checking whether ORPort %s:%d%s%s reachable... (this may take several minutes)", + options->Address, options->ORPort, + options->DirPort ? dirbuf : "", options->DirPort ? "are" : "is"); + } } circuit_rep_hist_note_result(circ); circuit_has_opened(circ); /* do other actions as necessary */