Clean up and fix exit policy check in connection_exit_connect().

Previously, we would reject even rendezvous connections to IPv6
addresses when IPv6Exit was false.  But that doesn't make sense; we
don't count that as "exit"ing.  I've corrected the logic and tried
to make it a lottle more clear.

Fixes bug 18357; this code has been wrong since 9016d9e829 in
0.2.4.7-alpha.
This commit is contained in:
Nick Mathewson
2016-10-05 12:38:03 -04:00
parent 684500519d
commit 785176e975
2 changed files with 20 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
o Minor bugfixes (hidden service):
- Allow hidden services to run on IPv6 addresses even when the
IPv6Exit option is not set. Fixes bug 18357; bugfix on
0.2.4.7-alpha.