aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-01-20 18:39:48 +0000
committerNick Mathewson <nickm@torproject.org>2005-01-20 18:39:48 +0000
commit129e754ae42db3ceb57a21c20affa094b02a9f7f (patch)
treed6a1c74216088edcafb1a1758ce9201e5856c0d4 /src/or/config.c
parentdab63afe2f03ffb8be632cb8cedc0fabd1deb5b3 (diff)
downloadtor-129e754ae42db3ceb57a21c20affa094b02a9f7f.tar.gz
tor-129e754ae42db3ceb57a21c20affa094b02a9f7f.zip
Warn when exit policy implicitly allows local addresses.
svn:r3383
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index b0cf8474c6..3175e13a11 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1480,6 +1480,7 @@ options_validate(or_options_t *options)
log_fn(LOG_WARN, "Error in Exit Policy entry.");
result = -1;
}
+ exit_policy_implicitly_allows_local_networks(addr_policy, 1);
if (config_parse_addr_policy(options->DirPolicy, &addr_policy)) {
log_fn(LOG_WARN, "Error in DirPolicy entry.");
result = -1;