From: Senthil Kumaran Date: Wed, 18 Aug 2010 19:32:21 +0000 (+0000) Subject: Fix Issue672656 - Securing pydoc server. X-Git-Tag: v3.2a2~229 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ff59131f8e5de9a692eb28c3423d95863d583a2;p=thirdparty%2FPython%2Fcpython.git Fix Issue672656 - Securing pydoc server. --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index dcb4737b50b4..acee7b770c5e 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -2029,7 +2029,7 @@ pydoc by Ka-Ping Yee <ping@lfw.org>''' 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)