summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-07-21 22:04:18 +0000
committerRoger Dingledine <arma@torproject.org>2007-07-21 22:04:18 +0000
commita916e07ea68c897d42704df49e423dcfc223ef98 (patch)
treee7b07a019a3ec9554187bd07ff1bbfed0ef2aa93 /src/or/circuitbuild.c
parent8e50aa73418d85d5861a8849859d8cb6923b1f69 (diff)
downloadtor-a916e07ea68c897d42704df49e423dcfc223ef98.tar.gz
tor-a916e07ea68c897d42704df49e423dcfc223ef98.zip
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
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c3
1 files changed, 2 insertions, 1 deletions
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 <b>ri</b> 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. */