From: Senthil Kumaran <orsenthil@gmail.com>
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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ff59131f8e5de9a692eb28c3423d95863d583a2;p=python

Fix Issue672656 - Securing pydoc server.
---

diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index dcb4737b50..acee7b770c 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -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)