From a916e07ea68c897d42704df49e423dcfc223ef98 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 21 Jul 2007 22:04:18 +0000 Subject: when requesting tor/server/authority, ask for tor/server/authority.z instead. same functionality, saves a bit of bandwidth. and might even work. svn:r10896 --- src/or/circuitbuild.c | 3 ++- src/or/router.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 17199053c9..72c839b238 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -2716,6 +2716,7 @@ routerinfo_get_configured_bridge(routerinfo_t *ri) return NULL; } +/** Return 1 if ri is one of our known bridges, else 0. */ int routerinfo_is_a_configured_bridge(routerinfo_t *ri) { @@ -2809,7 +2810,7 @@ fetch_bridge_descriptors(time_t now) 1, bridge->identity, DIR_PURPOSE_FETCH_SERVERDESC, ROUTER_PURPOSE_BRIDGE, - 0, "authority", NULL, 0); + 0, "authority.z", NULL, 0); } } else { /* we have a digest and we want to ask an authority. */ diff --git a/src/or/router.c b/src/or/router.c index 7d3d621911..1137881e68 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -615,7 +615,7 @@ consider_testing_reachability(int test_or, int test_dir) 0, me->cache_info.identity_digest, DIR_PURPOSE_FETCH_SERVERDESC, ROUTER_PURPOSE_GENERAL, - 1, "authority", NULL, 0); + 1, "authority.z", NULL, 0); control_event_server_status(LOG_NOTICE, "CHECKING_REACHABILITY DIRADDRESS=%s:%d", -- cgit v1.2.3-54-g00ecf