From 7ff59131f8e5de9a692eb28c3423d95863d583a2 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Wed, 18 Aug 2010 19:32:21 +0000 Subject: [PATCH] Fix Issue672656 - Securing pydoc server. --- Lib/pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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) -- 2.40.0