Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
0324d3b0
Commit
0324d3b0
authored
14 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
fetch relay descriptors from v3 authorities
parent
6b7e5eb5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/1324-fetch-from-v3-not-v2
+5
-0
5 additions, 0 deletions
changes/1324-fetch-from-v3-not-v2
src/or/directory.c
+6
-2
6 additions, 2 deletions
src/or/directory.c
with
11 additions
and
2 deletions
changes/1324-fetch-from-v3-not-v2
0 → 100644
+
5
−
0
View file @
0324d3b0
o Major bugfixes:
- Directory mirrors were fetching relay descriptors only from v2
directory authorities, rather than v3 authorities like they should.
Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
This diff is collapsed.
Click to expand it.
src/or/directory.c
+
6
−
2
View file @
0324d3b0
...
...
@@ -128,6 +128,8 @@ authority_type_to_string(authority_type_t auth)
smartlist_add
(
lst
,
(
void
*
)
"V1"
);
if
(
auth
&
V2_AUTHORITY
)
smartlist_add
(
lst
,
(
void
*
)
"V2"
);
if
(
auth
&
V3_AUTHORITY
)
smartlist_add
(
lst
,
(
void
*
)
"V3"
);
if
(
auth
&
BRIDGE_AUTHORITY
)
smartlist_add
(
lst
,
(
void
*
)
"Bridge"
);
if
(
auth
&
HIDSERV_AUTHORITY
)
...
...
@@ -309,12 +311,14 @@ directory_get_from_dirserver(uint8_t dir_purpose, uint8_t router_purpose,
case
DIR_PURPOSE_FETCH_EXTRAINFO
:
type
=
EXTRAINFO_CACHE
|
(
router_purpose
==
ROUTER_PURPOSE_BRIDGE
?
BRIDGE_AUTHORITY
:
V
2
_AUTHORITY
);
V
3
_AUTHORITY
);
break
;
case
DIR_PURPOSE_FETCH_V2_NETWORKSTATUS
:
type
=
V2_AUTHORITY
;
break
;
case
DIR_PURPOSE_FETCH_SERVERDESC
:
type
=
(
router_purpose
==
ROUTER_PURPOSE_BRIDGE
?
BRIDGE_AUTHORITY
:
V
2
_AUTHORITY
);
V
3
_AUTHORITY
);
break
;
case
DIR_PURPOSE_FETCH_RENDDESC
:
type
=
HIDSERV_AUTHORITY
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment