summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-14 09:32:39 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-14 09:32:39 -0400
commit1ca03633fe47273e95595d03a9fd086fbf9d9c71 (patch)
tree7a9954d27a4cc272caed829f58f65b75c6823575
parent12320e7f3ed181f8eb0af4b02507ac3abb7fe6ea (diff)
downloadtor-1ca03633fe47273e95595d03a9fd086fbf9d9c71.tar.gz
tor-1ca03633fe47273e95595d03a9fd086fbf9d9c71.zip
Tweak message; only log it on a relay.
-rw-r--r--src/core/or/policies.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/or/policies.c b/src/core/or/policies.c
index 1c9c9b0755..3cb5e53599 100644
--- a/src/core/or/policies.c
+++ b/src/core/or/policies.c
@@ -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