mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
only check if exit_policy_implicitly_allows if you're a server.
also, put a comment next to an interesting undocumented 'feature'. svn:r3499
This commit is contained in:
parent
0f5a198028
commit
976bee4a3f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user