summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2015-02-06 15:33:32 -0800
committerJeff Forcier <jeff@bitprophet.org>2015-02-06 15:33:32 -0800
commitb42b5338de868c3a5343dd03a8ee3f8a968d2f65 (patch)
tree11f61b1b99f5ba122a26e9b33e50587897b09461
parentd97c938db32c44a8253f6f872cc3b354492a21cc (diff)
Comment
-rw-r--r--paramiko/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index dbe7fcba..b907d3b0 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -256,6 +256,7 @@ class SSHClient (ClosingContextManager):
``gss_deleg_creds`` and ``gss_host`` arguments.
"""
if not sock:
+ # Try multiple possible address families (e.g. IPv4 vs IPv6)
for af, addr in self._families_and_addresses(hostname, port):
try:
sock = socket.socket(af, socket.SOCK_STREAM)