]> granicus.if.org Git - python/commitdiff
Merged revisions 84173 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Wed, 18 Aug 2010 19:35:53 +0000 (19:35 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Wed, 18 Aug 2010 19:35:53 +0000 (19:35 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84173 | senthil.kumaran | 2010-08-19 01:02:21 +0530 (Thu, 19 Aug 2010) | 3 lines

  Fix Issue672656 - Securing pydoc server.
........

Lib/pydoc.py

index 0798406375ecf6db08f19a9416e802b6a045cc11..c672cc33c364bdddfa9bc1b6d0163e9a8eb7128c 100755 (executable)
@@ -2032,7 +2032,7 @@ pydoc</strong> by Ka-Ping Yee &lt;ping@lfw.org&gt;</font>'''
     class DocServer(BaseHTTPServer.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)