diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-09-24 17:19:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-09-24 17:19:21 -0400 |
commit | 9febbf0451ecd60fb78c1b4e5632d09bf3403fcc (patch) | |
tree | 84a9b4341bb4163bc66b5bb7ed37d24e05ce206a /src | |
parent | 4b2ae5a16b67c826e63f5b3b7cc23169ac3a4652 (diff) | |
parent | e62fe2f02d38958516026ce9042c3d1542b6c0a6 (diff) | |
download | tor-9febbf0451ecd60fb78c1b4e5632d09bf3403fcc.tar.gz tor-9febbf0451ecd60fb78c1b4e5632d09bf3403fcc.zip |
Merge branch 'bug17149'
Diffstat (limited to 'src')
-rw-r--r-- | src/or/policies.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index 86eedd2c17..9c858ec1b0 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -1037,7 +1037,7 @@ policies_parse_exit_policy_internal(config_line_t *cfg, smartlist_t **dest, "address", fmt_addr(ipv6_local_address)); } else { char buf6[POLICY_BUF_LEN]; - tor_snprintf(buf6, sizeof(buf6), "reject %s:*", + tor_snprintf(buf6, sizeof(buf6), "reject [%s]:*", fmt_addr(ipv6_local_address)); append_exit_policy_string(dest, buf6); log_info(LD_CONFIG, "Adding a reject ExitPolicy '%s' for our " @@ -1075,7 +1075,7 @@ policies_parse_exit_policy_internal(config_line_t *cfg, smartlist_t **dest, * address */ if (ipv6_local_address == NULL || !tor_addr_eq(ipv6_local_address, a)) { - tor_snprintf(bufif, sizeof(bufif), "reject6 %s:*", + tor_snprintf(bufif, sizeof(bufif), "reject6 [%s]:*", fmt_addr(a)); append_exit_policy_string(dest, bufif); log_info(LD_CONFIG, "Adding a reject ExitPolicy '%s' for a local " |