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 ndim
Recipients ndim
Date 2008-06-27.00:11:25
SpamBayes Score 0.06218778
Marked as misclassified No
Message-id <1214525489.78.0.574038651579.issue3213@psf.upfronthosting.co.za>
In-reply-to
Content
According to "pydoc --help",

pydoc -p <port>
    Start an HTTP server on the given port on the local machine.

The IP address pydoc binds to is not specified, thus I would expect it
to either bind to the local address or to the wildcard address.

Current behaviour of "pydoc -p 1234" is to bind to the IPv4-only 
address 0.0.0.0:1234.

On a IPv4/IPv6 dual-stack machine, I would expect pydoc to listen to
either both 127.0.0.1:1234 and [::1]:<port>, or just [::]:<port> ([::]
also catches accesses to IPv4 addresses such as 127.0.0.1).

Then access to the pydoc webserver is
available both via IPv4 (e.g. http://127.0.0.1:1234/) and IPv6 (e.g.
http://[::1]:1234/), and in both cases via http://localhost:1234/
regardless whether localhost is resolved via IPv6 or IPv4.

Trivial patch attached (tested on Linux x86 machine with local IPv6
networking).
History
Date User Action Args
2008-06-27 00:11:30ndimsetspambayes_score: 0.0621878 -> 0.06218778
recipients: + ndim
2008-06-27 00:11:29ndimsetspambayes_score: 0.0621878 -> 0.0621878
messageid: <1214525489.78.0.574038651579.issue3213@psf.upfronthosting.co.za>
2008-06-27 00:11:28ndimlinkissue3213 messages
2008-06-27 00:11:27ndimcreate