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
The Tor Project
Core
Tor
Commits
1ca03633
Commit
1ca03633
authored
Sep 14, 2018
by
Nick Mathewson
🐛
Browse files
Tweak message; only log it on a relay.
parent
12320e7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/or/policies.c
View file @
1ca03633
...
...
@@ -1165,13 +1165,14 @@ validate_addr_policies(const or_options_t *options, char **msg)
static
int
warned_about_nonexit
=
0
;
if
(
!
warned_about_nonexit
&&
options
->
ExitPolicy
==
NULL
&&
if
(
public_server_mode
(
options
)
&&
!
warned_about_nonexit
&&
options
->
ExitPolicy
==
NULL
&&
options
->
ExitRelay
==
-
1
&&
options
->
ReducedExitPolicy
==
0
)
{
warned_about_nonexit
=
1
;
log_notice
(
LD_CONFIG
,
"By default, Tor does not run as an exit relay. "
"
The reason is to prevent your relay from appearing as the
"
"s
ource of abusive traffic. If you want to be an exit relay
, "
"set ExitRelay to
1
."
);
"
If you want to be an exit relay,
"
"s
et ExitRelay to 1. To suppress this message in the future
, "
"set ExitRelay to
0
."
);
}
/* The rest of these calls *append* to addr_policy. So don't actually
...
...
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