Fix Issue672656 - Securing pydoc server.

This commit is contained in:
Senthil Kumaran 2010-08-18 19:32:21 +00:00
parent dfaf9ec93a
commit 7ff59131f8

View file

@ -2029,7 +2029,7 @@ pydoc</strong> by Ka-Ping Yee &lt;ping@lfw.org&gt;</font>'''
class DocServer(http.server.HTTPServer):
def __init__(self, port, callback):
host = 'localhost'
self.address = ('', port)
self.address = (host, port)
self.url = 'http://%s:%d/' % (host, port)
self.callback = callback
self.base.__init__(self, self.address, self.handler)