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
3881ac2c
Commit
3881ac2c
authored
5 years ago
by
teor
Browse files
Options
Downloads
Patches
Plain Diff
dirauth: Refactor some config checks
Minor cleanup and simplification. Part of 32213.
parent
da49c4d7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/feature/dirauth/dirauth_config.c
+7
-7
7 additions, 7 deletions
src/feature/dirauth/dirauth_config.c
with
7 additions
and
7 deletions
src/feature/dirauth/dirauth_config.c
+
7
−
7
View file @
3881ac2c
...
...
@@ -106,16 +106,16 @@ options_validate_dirauth_mode(const or_options_t *old_options,
if
(
options
->
GuardfractionFile
&&
!
old_options
)
{
dirserv_read_guardfraction_file
(
options
->
GuardfractionFile
,
NULL
);
}
}
if
(
options
->
AuthoritativeDir
&&
!
options
->
DirPort_set
)
REJECT
(
"Running as authoritative directory, but no DirPort set."
);
if
(
!
options
->
DirPort_set
)
REJECT
(
"Running as authoritative directory, but no DirPort set."
);
if
(
options
->
AuthoritativeDir
&&
!
options
->
ORPort_set
)
REJECT
(
"Running as authoritative directory, but no ORPort set."
);
if
(
!
options
->
ORPort_set
)
REJECT
(
"Running as authoritative directory, but no ORPort set."
);
if
(
options
->
AuthoritativeDir
&&
options
->
ClientOnly
)
REJECT
(
"Running as authoritative directory, but ClientOnly also set."
);
if
(
options
->
ClientOnly
)
REJECT
(
"Running as authoritative directory, but ClientOnly also set."
);
}
return
0
;
}
...
...
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