summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-10-31 13:22:28 -0400
committerNick Mathewson <nickm@torproject.org>2017-10-31 13:25:41 -0400
commit00e781142b919476fd1ea594ac36b08147c20ede (patch)
treec3f748a8937a8080e6ee049b2139acbb268a12b0 /src
parent6e2f8de62d8e4ba440ae37e091651f075a0bf665 (diff)
downloadtor-00e781142b919476fd1ea594ac36b08147c20ede.tar.gz
tor-00e781142b919476fd1ea594ac36b08147c20ede.zip
Don't give "exitrelay may become 0 when no policy" warning on ReducedExitPolicy
Diffstat (limited to 'src')
-rw-r--r--src/or/policies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 0dfbd92097..1f80130710 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -1145,7 +1145,7 @@ validate_addr_policies(const or_options_t *options, char **msg)
"to 1 to disable this warning, and for forward compatibility.",
options->ExitPolicy == NULL ?
" with the default exit policy" : "");
- if (options->ExitPolicy == NULL) {
+ if (options->ExitPolicy == NULL && options->ReducedExitPolicy == 0) {
log_warn(LD_CONFIG,
"In a future version of Tor, ExitRelay 0 may become the "
"default when no ExitPolicy is given.");