mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
Fix Issue672656 - Securing pydoc server.
This commit is contained in:
parent
dfaf9ec93a
commit
7ff59131f8
1 changed files with 1 additions and 1 deletions
|
@ -2029,7 +2029,7 @@ pydoc</strong> by Ka-Ping Yee <ping@lfw.org></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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue