diff options
author | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-11-16 20:40:17 +1100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-11-20 10:48:19 -0500 |
commit | 10a6390deb3c9ff9fbd8078fc812abf6c77ad67f (patch) | |
tree | 91a338ddd92bbe9a8fe90643e928499e6a20ce29 /src/or/control.c | |
parent | 6913bdfcc568e880873e92331a3182536c3e653e (diff) | |
download | tor-10a6390deb3c9ff9fbd8078fc812abf6c77ad67f.tar.gz tor-10a6390deb3c9ff9fbd8078fc812abf6c77ad67f.zip |
Add controller getinfo exit-policy/reject-private
exit-policy/reject-private lists the reject rules added by
ExitPolicyRejectPrivate. This makes it easier for stem to
display exit policies.
Add unit tests for getinfo exit-policy/*.
Completes ticket #17183. Patch by "teor".
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c index 7d72342293..7e65611a88 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -2562,6 +2562,12 @@ static const getinfo_item_t getinfo_items[] = { "v3 Networkstatus consensus as retrieved from a DirPort."), ITEM("exit-policy/default", policies, "The default value appended to the configured exit policy."), + ITEM("exit-policy/reject-private/default", policies, + "The default rules appended to the configured exit policy by" + " ExitPolicyRejectPrivate."), + ITEM("exit-policy/reject-private/relay", policies, + "The relay-specific rules appended to the configured exit policy by" + " ExitPolicyRejectPrivate."), ITEM("exit-policy/full", policies, "The entire exit policy of onion router"), ITEM("exit-policy/ipv4", policies, "IPv4 parts of exit policy"), ITEM("exit-policy/ipv6", policies, "IPv6 parts of exit policy"), |