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
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
sergi
Tor
Commits
f24638aa
Commit
f24638aa
authored
8 years ago
by
teor
Committed by
Nick Mathewson
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Log a message when a hidden service has fewer intro points than expected
Closes ticket 21598.
parent
9af76a95
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/feature21598
+4
-0
4 additions, 0 deletions
changes/feature21598
src/or/rendservice.c
+19
-0
19 additions, 0 deletions
src/or/rendservice.c
with
23 additions
and
0 deletions
changes/feature21598
0 → 100644
+
4
−
0
View file @
f24638aa
o Minor feature (hidden services):
- Log a message when a hidden service descriptor has fewer introduction
points than specified in HiddenServiceNumIntroductionPoints.
Closes ticket 21598.
This diff is collapsed.
Click to expand it.
src/or/rendservice.c
+
19
−
0
View file @
f24638aa
...
...
@@ -1080,6 +1080,25 @@ rend_service_update_descriptor(rend_service_t *service)
intro_svc
->
time_published
=
time
(
NULL
);
}
}
/* Check that we have the right number of intro points */
unsigned
int
have_intro
=
(
unsigned
int
)
smartlist_len
(
d
->
intro_nodes
);
if
(
have_intro
!=
service
->
n_intro_points_wanted
)
{
int
severity
;
/* Getting less than we wanted or more than we're allowed is serious */
if
(
have_intro
<
service
->
n_intro_points_wanted
||
have_intro
>
NUM_INTRO_POINTS_MAX
)
{
severity
=
LOG_WARN
;
}
else
{
/* Getting more than we wanted is weird, but less of a problem */
severity
=
LOG_NOTICE
;
}
log_fn
(
severity
,
LD_REND
,
"Hidden service %s wanted %d intro points, but "
"descriptor was updated with %d instead."
,
service
->
service_id
,
service
->
n_intro_points_wanted
,
have_intro
);
rend_service_dump_stats
(
severity
);
}
}
/* Allocate and return a string containing the path to file_name in
...
...
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