diff options
author | Roger Dingledine <arma@torproject.org> | 2013-02-09 21:17:44 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2013-02-09 21:17:44 -0500 |
commit | 002c860caee374688f9478dfd6a6e2ebddad791f (patch) | |
tree | 6636dfa4cc038f9f44734bbf1c8e5472e00eed39 /src/or/policies.c | |
parent | e1ec03f819b83dc229484fc9a97ea0817ce0926a (diff) | |
download | tor-002c860caee374688f9478dfd6a6e2ebddad791f.tar.gz tor-002c860caee374688f9478dfd6a6e2ebddad791f.zip |
use me->addr when adding our address to our exit policy
(rather than me->address)
Diffstat (limited to 'src/or/policies.c')
-rw-r--r-- | src/or/policies.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index 9696b8123b..a658fae79a 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -438,7 +438,7 @@ validate_addr_policies(const or_options_t *options, char **msg) if (policies_parse_exit_policy(options->ExitPolicy, &addr_policy, options->IPv6Exit, - options->ExitPolicyRejectPrivate, NULL, + options->ExitPolicyRejectPrivate, 0, !options->BridgeRelay)) REJECT("Error in ExitPolicy entry."); @@ -940,7 +940,7 @@ exit_policy_remove_redundancies(smartlist_t *dest) int policies_parse_exit_policy(config_line_t *cfg, smartlist_t **dest, int ipv6_exit, - int rejectprivate, const char *local_address, + int rejectprivate, uint32_t local_address, int add_default_policy) { if (!ipv6_exit) { @@ -950,7 +950,7 @@ policies_parse_exit_policy(config_line_t *cfg, smartlist_t **dest, append_exit_policy_string(dest, "reject private:*"); if (local_address) { char buf[POLICY_BUF_LEN]; - tor_snprintf(buf, sizeof(buf), "reject %s:*", local_address); + tor_snprintf(buf, sizeof(buf), "reject %s:*", fmt_addr32(local_address)); append_exit_policy_string(dest, buf); } } |