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
0df15642
Commit
0df15642
authored
Mar 10, 2008
by
Roger Dingledine
Browse files
forward-port recent changes
svn:r13935
parent
28a220b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/config.c
View file @
0df15642
...
...
@@ -243,7 +243,7 @@ static config_var_t _option_vars[] = {
V
(
OutboundBindAddress
,
STRING
,
NULL
),
OBSOLETE
(
"PathlenCoinWeight"
),
V
(
PidFile
,
STRING
,
NULL
),
V
(
PreferTunneledDirConns
,
BOOL
,
"
0
"
),
V
(
PreferTunneledDirConns
,
BOOL
,
"
1
"
),
V
(
ProtocolWarnings
,
BOOL
,
"0"
),
V
(
PublishServerDescriptor
,
CSV
,
"1"
),
V
(
PublishHidServDescriptors
,
BOOL
,
"1"
),
...
...
@@ -289,7 +289,7 @@ static config_var_t _option_vars[] = {
OBSOLETE
(
"TrafficShaping"
),
V
(
TransListenAddress
,
LINELIST
,
NULL
),
V
(
TransPort
,
UINT
,
"0"
),
V
(
TunnelDirConns
,
BOOL
,
"
0
"
),
V
(
TunnelDirConns
,
BOOL
,
"
1
"
),
V
(
UpdateBridgesFromAuthority
,
BOOL
,
"0"
),
V
(
UseBridges
,
BOOL
,
"0"
),
V
(
UseEntryGuards
,
BOOL
,
"1"
),
...
...
@@ -3118,6 +3118,13 @@ options_validate(or_options_t *old_options, or_options_t *options,
if
(
options
->
BandwidthRate
>
options
->
BandwidthBurst
)
REJECT
(
"BandwidthBurst must be at least equal to BandwidthRate."
);
/* if they set relaybandwidth* really high but left bandwidth*
* at the default, raise the defaults. */
if
(
options
->
RelayBandwidthRate
>
options
->
BandwidthRate
)
options
->
BandwidthRate
=
options
->
RelayBandwidthRate
;
if
(
options
->
RelayBandwidthBurst
>
options
->
BandwidthBurst
)
options
->
BandwidthBurst
=
options
->
RelayBandwidthBurst
;
if
(
accounting_parse_options
(
options
,
1
)
<
0
)
REJECT
(
"Failed to parse accounting options. See logs for details."
);
...
...
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