SSHClient IPv6 support

Bug #363163 reported by Shikhar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
paramiko
Fix Committed
Medium
Robey Pointer

Bug Description

w.r.t http://bazaar.launchpad.net/~robey/paramiko/trunk/annotate/head%3A/paramiko/client.py#L276

Address family is specified as AF_INET, while it might well be AF_INET6. getaddrinfo() should be used on the host argument to determine the address family.

Revision history for this message
Shikhar (shikhar) wrote :

I just saw that this has been fixed on the github repo

Revision history for this message
Shikhar (shikhar) wrote :

I made a pull request on github --- the current implementation is not quite right.

Revision history for this message
Robey Pointer (robey) wrote :

took patch in email -- thanks!

Changed in paramiko:
assignee: nobody → Robey Pointer (robey)
importance: Undecided → Medium
milestone: none → 1.7.5
status: New → Confirmed
status: Confirmed → Fix Committed
Robey Pointer (robey)
Changed in paramiko:
status: Fix Committed → Fix Released
Revision history for this message
Paul Koning (pkoning) wrote :

The same bug exists in transport.py line 288, and the same solution approach (use getaddrinfo) works fine there as well.

Revision history for this message
Robey Pointer (robey) wrote :

ok, copied that code over.

Changed in paramiko:
status: Fix Released → Fix Committed
milestone: 1.7.5 → 1.7.6
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.