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
5040c855
Commit
5040c855
authored
Oct 30, 2010
by
Sebastian Hahn
Browse files
Break NoPublish support
parent
556a1b9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/or/config.c
View file @
5040c855
...
...
@@ -304,7 +304,7 @@ static config_var_t _option_vars[] = {
V
(
NATDPort
,
UINT
,
"0"
),
V
(
Nickname
,
STRING
,
NULL
),
V
(
WarnUnsafeSocks
,
BOOL
,
"1"
),
V
(
NoPublish
,
BOOL
,
"0
"
),
OBSOLETE
(
"NoPublish
"
),
VAR
(
"NodeFamily"
,
LINELIST
,
NodeFamilies
,
NULL
),
V
(
NumCPUs
,
UINT
,
"1"
),
V
(
NumEntryGuards
,
UINT
,
"3"
),
...
...
@@ -2996,14 +2996,6 @@ options_validate(or_options_t *old_options, or_options_t *options,
if
(
options_init_logs
(
options
,
1
)
<
0
)
/* Validate the log(s) */
REJECT
(
"Failed to validate Log options. See logs for details."
);
if
(
options
->
NoPublish
)
{
log
(
LOG_WARN
,
LD_CONFIG
,
"NoPublish is obsolete. Use PublishServerDescriptor instead."
);
SMARTLIST_FOREACH
(
options
->
PublishServerDescriptor
,
char
*
,
s
,
tor_free
(
s
));
smartlist_clear
(
options
->
PublishServerDescriptor
);
}
if
(
authdir_mode
(
options
))
{
/* confirm that our address isn't broken, so we can complain now */
uint32_t
tmp
;
...
...
@@ -3832,7 +3824,6 @@ options_transition_affects_descriptor(or_options_t *old_options,
old_options
->
ORPort
!=
new_options
->
ORPort
||
old_options
->
DirPort
!=
new_options
->
DirPort
||
old_options
->
ClientOnly
!=
new_options
->
ClientOnly
||
old_options
->
NoPublish
!=
new_options
->
NoPublish
||
old_options
->
_PublishServerDescriptor
!=
new_options
->
_PublishServerDescriptor
||
get_effective_bwrate
(
old_options
)
!=
get_effective_bwrate
(
new_options
)
||
...
...
src/or/or.h
View file @
5040c855
...
...
@@ -2447,8 +2447,6 @@ typedef struct {
int
AvoidDiskWrites
;
/**< Boolean: should we never cache things to disk?
* Not used yet. */
int
ClientOnly
;
/**< Boolean: should we never evolve into a server role? */
/** Boolean: should we never publish a descriptor? Deprecated. */
int
NoPublish
;
/** To what authority types do we publish our descriptor? Choices are
* "v1", "v2", "v3", "bridge", or "". */
smartlist_t
*
PublishServerDescriptor
;
...
...
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