aboutsummaryrefslogtreecommitdiff
path: root/src/core/mainloop
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2018-09-26 19:14:33 -0400
committerNick Mathewson <nickm@torproject.org>2018-12-01 14:55:57 -0500
commit822cb93cab59e9735e2efda70bc88c47cc92c498 (patch)
tree6955f83f3f264ac0b53a4baf7172aa2385874a07 /src/core/mainloop
parentc82163dff468443d28b6d0c9b1253f7721eb3fdc (diff)
downloadtor-822cb93cab59e9735e2efda70bc88c47cc92c498.tar.gz
tor-822cb93cab59e9735e2efda70bc88c47cc92c498.zip
Add new option ClientAutoIPv6ORPort to switch between IPv4 and IPv6 OR ports
Diffstat (limited to 'src/core/mainloop')
-rw-r--r--src/core/mainloop/connection.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c
index 4231bec014..9f8169082c 100644
--- a/src/core/mainloop/connection.c
+++ b/src/core/mainloop/connection.c
@@ -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)) {