[or-cvs] r10896: when requesting tor/server/authority, ask for tor/server/aut (tor/trunk/src/or)
arma at seul.org
arma at seul.org
Sat Jul 21 22:04:18 UTC 2007
Author: arma
Date: 2007-07-21 18:04:18 -0400 (Sat, 21 Jul 2007)
New Revision: 10896
Modified:
tor/trunk/src/or/circuitbuild.c
tor/trunk/src/or/router.c
Log:
when requesting tor/server/authority, ask for tor/server/authority.z
instead. same functionality, saves a bit of bandwidth. and might even
work.
Modified: tor/trunk/src/or/circuitbuild.c
===================================================================
--- tor/trunk/src/or/circuitbuild.c 2007-07-21 12:30:53 UTC (rev 10895)
+++ tor/trunk/src/or/circuitbuild.c 2007-07-21 22:04:18 UTC (rev 10896)
@@ -2716,6 +2716,7 @@
return NULL;
}
+/** Return 1 if <b>ri</b> is one of our known bridges, else 0. */
int
routerinfo_is_a_configured_bridge(routerinfo_t *ri)
{
@@ -2809,7 +2810,7 @@
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. */
Modified: tor/trunk/src/or/router.c
===================================================================
--- tor/trunk/src/or/router.c 2007-07-21 12:30:53 UTC (rev 10895)
+++ tor/trunk/src/or/router.c 2007-07-21 22:04:18 UTC (rev 10896)
@@ -615,7 +615,7 @@
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",
More information about the tor-commits
mailing list