diff options
author | Roger Dingledine <arma@torproject.org> | 2006-07-04 03:19:59 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-07-04 03:19:59 +0000 |
commit | dc79dd6a469cf9c563bbc160ea297f3c5af5487f (patch) | |
tree | 45e5ab21362940c553810d159653585f8440648d /src/or/circuitbuild.c | |
parent | 9fce316d1cf58d85913639db1555c5ba205ce7ff (diff) | |
download | tor-dc79dd6a469cf9c563bbc160ea297f3c5af5487f.tar tor-dc79dd6a469cf9c563bbc160ea297f3c5af5487f.tar.gz |
minor fixes
svn:r6709
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index b618cec23..e6d13d667 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -54,9 +54,8 @@ static routerinfo_t *choose_random_entry(cpath_build_state_t *state); static void entry_guards_changed(void); /** Iterate over values of circ_id, starting from conn-\>next_circ_id, - * and with the high bit specified by circ_id_type (see - * decide_circ_id_type()), until we get a circ_id that is not in use - * by any other circuit on that conn. + * and with the high bit specified by conn-\>circ_id_type, until we get + * a circ_id that is not in use by any other circuit on that conn. * * Return it, or 0 if can't get a unique circ_id. */ @@ -530,7 +529,7 @@ should_use_create_fast_for_router(routerinfo_t *router) { or_options_t *options = get_options(); - if (!options->FastFirstHopPK || options->ORPort) + if (!options->FastFirstHopPK || server_mode(options)) return 0; else if (!router || !router->platform || !tor_version_as_new_as(router->platform, "0.1.0.6-rc")) @@ -600,7 +599,7 @@ circuit_send_next_onion_skin(circuit_t *circ) circuit_set_state(circ, CIRCUIT_STATE_BUILDING); log_info(LD_CIRC,"First hop: finished sending %s cell to '%s'", fast ? "CREATE_FAST" : "CREATE", - router ? router->nickname : "<unnamed>"); + router ? router->nickname : "<unnamed>"); } else { tor_assert(circ->cpath->state == CPATH_STATE_OPEN); tor_assert(circ->state == CIRCUIT_STATE_BUILDING); |