diff options
author | Roger Dingledine <arma@torproject.org> | 2005-02-02 01:59:16 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-02-02 01:59:16 +0000 |
commit | 976bee4a3f28879b4cafbb34c19a65e49067dddd (patch) | |
tree | d87d9e1f615b2a3820ed26d690034fe3e4f350f1 /src/or/config.c | |
parent | 0f5a19802877d0dee6dd5c7cf658b882022264ce (diff) | |
download | tor-976bee4a3f28879b4cafbb34c19a65e49067dddd.tar.gz tor-976bee4a3f28879b4cafbb34c19a65e49067dddd.zip |
only check if exit_policy_implicitly_allows if you're a server.
also, put a comment next to an interesting undocumented 'feature'.
svn:r3499
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index ea922595d3..41f8c3f1ec 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1483,7 +1483,11 @@ 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 (server_mode(options)) { + exit_policy_implicitly_allows_local_networks(addr_policy, 1); + } + /* The rest of these calls *append* to addr_policy. So don't actually + * use the results for anything other than checking if they parse! */ if (config_parse_addr_policy(options->DirPolicy, &addr_policy)) { log_fn(LOG_WARN, "Error in DirPolicy entry."); result = -1; |