Make tor_ersatz_socketpair work on IPv6-only systems

(But it won't work on some systems without IPv4/IPv6 localhost
(some BSD jails) by design, to avoid creating sockets on routable
IP addresses. However, those systems likely have the AF_UNIX socketpair,
which tor prefers.)

Fixes bug #17638; bugfix on a very early tor version,
earlier than 22dba27d8d (23 Nov 2004) / svn:r2943.

Patch by "teor".
This commit is contained in:
teor (Tim Wilson-Brown)
2015-11-19 19:08:22 +11:00
parent 913fbf8f2f
commit 53ec840bdf
3 changed files with 74 additions and 35 deletions
+5
View File
@@ -0,0 +1,5 @@
o Minor bugfix (IPv6 compatibility, unit tests):
- Make tor_ersatz_socketpair work on IPv6-only systems.
Fixes bug #17638; bugfix on a very early tor version,
earlier than 22dba27d8dd5 (23 Nov 2004) / svn:r2943.
Patch by "teor".