mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Tweak message; only log it on a relay.
This commit is contained in:
@@ -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 "
|
||||
"source of abusive traffic. If you want to be an exit relay, "
|
||||
"set ExitRelay to 1.");
|
||||
"If you want to be an exit relay, "
|
||||
"set 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
|
||||
|
||||
Reference in New Issue
Block a user