]> granicus.if.org Git - python/commitdiff
Fix Issue672656 - Securing pydoc server.
authorSenthil Kumaran <orsenthil@gmail.com>
Wed, 18 Aug 2010 19:32:21 +0000 (19:32 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Wed, 18 Aug 2010 19:32:21 +0000 (19:32 +0000)
Lib/pydoc.py

index dcb4737b50b4e8169762f8a25eae042ac0dca379..acee7b770c5ee650e0597ac86b26f380bc5c3a2e 100755 (executable)
@@ -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)