Add new option ClientAutoIPv6ORPort to switch between IPv4 and IPv6 OR ports

This commit is contained in:
Neel Chauhan
2018-09-26 19:14:33 -04:00
committed by Nick Mathewson
parent c82163dff4
commit 822cb93cab
7 changed files with 37 additions and 2 deletions
+5
View File
@@ -2069,6 +2069,11 @@ connection_connect_log_client_use_ip_version(const connection_t *conn)
return;
}
if (fascist_firewall_use_ipv6(options)) {
log_info(LD_NET, "Our outgoing connection is using IPv%d.",
tor_addr_family(&real_addr) == AF_INET6 ? 6 : 4);
}
/* Check if we couldn't satisfy an address family preference */
if ((!pref_ipv6 && tor_addr_family(&real_addr) == AF_INET6)
|| (pref_ipv6 && tor_addr_family(&real_addr) == AF_INET)) {