Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Benjamin J. Thompson
Tor
Commits
57d33b57
Commit
57d33b57
authored
6 years ago
by
George Kadianakis
Browse files
Options
Downloads
Plain Diff
Merge branch 'tor-github/pr/698'
parents
7fbfdf2a
df8ad647
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/bug24338
+4
-0
4 additions, 0 deletions
changes/bug24338
src/feature/dirauth/voteflags.c
+15
-3
15 additions, 3 deletions
src/feature/dirauth/voteflags.c
with
19 additions
and
3 deletions
changes/bug24338
0 → 100644
+
4
−
0
View file @
57d33b57
o Minor bugfixes (dirauth, ipv6):
- If we are a durauth with IPv6 and are marking relays as running, mark
ourselves as reachable on IPv6. Fixes bug 24338; bugfix on 0.4.0.2-alpha.
Patch by Neel Chauhan
This diff is collapsed.
Click to expand it.
src/feature/dirauth/voteflags.c
+
15
−
3
View file @
57d33b57
...
...
@@ -531,6 +531,20 @@ dirserv_set_router_is_running(routerinfo_t *router, time_t now)
node
->
is_running
=
answer
;
}
/* Check <b>node</b> and <b>ri</b> on whether or not we should publish a
* relay's IPv6 addresses. */
static
int
should_publish_node_ipv6
(
const
node_t
*
node
,
const
routerinfo_t
*
ri
,
time_t
now
)
{
const
or_options_t
*
options
=
get_options
();
return
options
->
AuthDirHasIPv6Connectivity
==
1
&&
!
tor_addr_is_null
(
&
ri
->
ipv6_addr
)
&&
((
node
->
last_reachable6
>=
now
-
REACHABLE_TIMEOUT
)
||
router_is_me
(
ri
));
}
/** Extract status information from <b>ri</b> and from other authority
* functions and store it in <b>rs</b>. <b>rs</b> is zeroed out before it is
* set.
...
...
@@ -597,9 +611,7 @@ set_routerstatus_from_routerinfo(routerstatus_t *rs,
rs
->
is_staledesc
=
(
ri
->
cache_info
.
published_on
+
DESC_IS_STALE_INTERVAL
)
<
now
;
if
(
options
->
AuthDirHasIPv6Connectivity
==
1
&&
!
tor_addr_is_null
(
&
ri
->
ipv6_addr
)
&&
node
->
last_reachable6
>=
now
-
REACHABLE_TIMEOUT
)
{
if
(
should_publish_node_ipv6
(
node
,
ri
,
now
))
{
/* We're configured as having IPv6 connectivity. There's an IPv6
OR port and it's reachable so copy it to the routerstatus. */
tor_addr_copy
(
&
rs
->
ipv6_addr
,
&
ri
->
ipv6_addr
);
...
...
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