Avoid disclosing exit IP addresses in exit policies by default
commit514f0041d190b9e142cc246e3ec7ac65342547bd
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Fri, 1 Jul 2016 05:37:13 +0000 (1 15:37 +1000)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Fri, 1 Jul 2016 05:37:13 +0000 (1 15:37 +1000)
tree4476a6dbcb443e380267cc120b21ed230137b812
parent64ee7bcd0c8e154269145b626a7cd56b9d6264a1
Avoid disclosing exit IP addresses in exit policies by default

From 0.2.7.2-alpha onwards, Exits would reject all the IP addresses
they knew about in their exit policy. But this may have disclosed
addresses that were otherwise unlisted.

Now, only advertised addresses are rejected by default by
ExitPolicyRejectPrivate. All known addresses are only rejected when
ExitPolicyRejectLocalInterfaces is explicitly set to 1.
changes/bug18456 [new file with mode: 0644]
doc/tor.1.txt
src/or/config.c
src/or/control.c
src/or/main.c
src/or/or.h
src/or/policies.c
src/or/policies.h
src/test/test_policy.c