Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mike Perry
Tor
Commits
8e4f1f67
Commit
8e4f1f67
authored
Mar 10, 2004
by
Roger Dingledine
Browse files
actually, if recommendedversions is required for dirservers,
then require it. svn:r1253
parent
3ba392e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/config.c
View file @
8e4f1f67
...
...
@@ -377,7 +377,7 @@ static void init_options(or_options_t *options) {
options
->
SocksBindAddress
=
tor_strdup
(
"127.0.0.1"
);
options
->
ORBindAddress
=
tor_strdup
(
"0.0.0.0"
);
options
->
DirBindAddress
=
tor_strdup
(
"0.0.0.0"
);
options
->
RecommendedVersions
=
tor_strdup
(
"[no recommended versions defined -- the dirserver must define this]"
)
;
options
->
RecommendedVersions
=
NULL
;
options
->
loglevel
=
LOG_INFO
;
options
->
PidFile
=
NULL
;
// tor_strdup("tor.pid");
options
->
DataDirectory
=
NULL
;
...
...
@@ -575,6 +575,11 @@ int getconfig(int argc, char **argv, or_options_t *options) {
result
=
-
1
;
}
if
(
options
->
DirPort
&&
options
->
RecommendedVersions
==
NULL
)
{
log
(
LOG_WARN
,
"Directory servers must configure RecommendedVersions."
);
result
=
-
1
;
}
if
(
options
->
SocksPort
>
1
&&
(
options
->
PathlenCoinWeight
<
0
.
0
||
options
->
PathlenCoinWeight
>=
1
.
0
))
{
log
(
LOG_WARN
,
"PathlenCoinWeight option must be >=0.0 and <1.0."
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment