This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dmorr
Recipients dcantrell-rh, dmorr, facundobatista, jjlee, orsenthil, skip.montanaro
Date 2009-01-01.18:49:03
SpamBayes Score 0.025556345
Marked as misclassified No
Message-id <1230835745.38.0.984602760083.issue1675455@psf.upfronthosting.co.za>
In-reply-to
Content
Senthil,

I don't think your gethost_addrinfo() function will work. On a v6-
enabled machine, it will only return v6 or v4 names. Shouldn't it 
return both (since a machine could have both v4 and v6 addresses)? For 
example, on my machine, I have the following addresses for 
"localhost": ::1, fe80::1%lo0, 127.0.0.1.

Also, why is the AI_CANONNAME flag set? The canonname field isn't used. 
And you only appear to take the last IP address returned (sa[0]). 
Shouldn't you return all the addresses?
History
Date User Action Args
2009-01-01 18:49:05dmorrsetrecipients: + dmorr, skip.montanaro, facundobatista, jjlee, orsenthil, dcantrell-rh
2009-01-01 18:49:05dmorrsetmessageid: <1230835745.38.0.984602760083.issue1675455@psf.upfronthosting.co.za>
2009-01-01 18:49:04dmorrlinkissue1675455 messages
2009-01-01 18:49:03dmorrcreate