Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ff5913

Browse files
committed
Fix Issue672656 - Securing pydoc server.
1 parent dfaf9ec commit 7ff5913

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,7 @@ def log_message(self, *args): pass
20292029
class DocServer(http.server.HTTPServer):
20302030
def __init__(self, port, callback):
20312031
host = 'localhost'
2032-
self.address = ('', port)
2032+
self.address = (host, port)
20332033
self.url = 'http://%s:%d/' % (host, port)
20342034
self.callback = callback
20352035
self.base.__init__(self, self.address, self.handler)

0 commit comments

Comments
 (0)