diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-06-28 15:47:07 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-06-28 15:47:07 -0400 |
commit | e13e9c40c829d15fb71310b0638fff859b85580a (patch) | |
tree | 0697ba12dba31d2de37163864e202fd7edeca130 /src/or/policies.c | |
parent | 1e008e98767fb1b98142a4099a837bbb2ce818f4 (diff) | |
download | tor-e13e9c40c829d15fb71310b0638fff859b85580a.tar.gz tor-e13e9c40c829d15fb71310b0638fff859b85580a.zip |
Never emit the "opt" prefix in any directory stuff
Fix for bug 5124.
Diffstat (limited to 'src/or/policies.c')
-rw-r--r-- | src/or/policies.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index b2b962dfd7..201ed04106 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -1006,8 +1006,7 @@ policy_write_item(char *buf, size_t buflen, addr_policy_t *policy, else addrpart = addrbuf; - result = tor_snprintf(buf, buflen, "%s%s%s %s", - (is_ip6&&format_for_desc)?"opt ":"", + result = tor_snprintf(buf, buflen, "%s%s %s", is_accept ? "accept" : "reject", (is_ip6&&format_for_desc)?"6":"", addrpart); |