mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add new option ClientAutoIPv6ORPort to switch between IPv4 and IPv6 OR ports
This commit is contained in:
committed by
Nick Mathewson
parent
c82163dff4
commit
822cb93cab
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user