Author martin.panter
Recipients Link Mauve, demian.brecht, martin.panter
Date 2015-05-23.03:53:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432353185.84.0.458128967645.issue24209@psf.upfronthosting.co.za>
In-reply-to
Content
I am no IPv6 expert, but this looks like a reasonable first approximation. The “http.server” module documentation should also be updated to say IPv6 addresses are supported on the command line, and I guess there should be a test case added.

But maybe see Lib/smtpd.py line 657 for how this is done in a more general way for the SMTP server module (Issue 14758), using getaddrinfo(). There is also Issue 20215 proposing to do something equivalent in the lower level “socketserver” module, which would probably make this change redundant.

It would also be nice for it to bind to both IPv4 and IPv6 if possible, but that is apparently not easy to do cross platform; see Issue 3213.
History
Date User Action Args
2015-05-23 03:53:05martin.pantersetrecipients: + martin.panter, demian.brecht, Link Mauve
2015-05-23 03:53:05martin.pantersetmessageid: <1432353185.84.0.458128967645.issue24209@psf.upfronthosting.co.za>
2015-05-23 03:53:05martin.panterlinkissue24209 messages
2015-05-23 03:53:05martin.pantercreate