]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Don't give "exitrelay may become 0 when no policy" warning on ReducedExitPolicy
authorNick Mathewson <nickm@torproject.org>
Tue, 31 Oct 2017 17:22:28 +0000 (13:22 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 31 Oct 2017 17:25:41 +0000 (13:25 -0400)
src/or/policies.c

index 0dfbd92097d62fcd037d6d246062f3c8cdcd7f2e..1f8013071053ba69a17a991a6c37df965622363a 100644 (file)
@@ -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.");