mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
This commit is contained in:
parent
7d0b8f95e7
commit
2a42a0bff3
2 changed files with 4 additions and 2 deletions
|
@ -557,6 +557,8 @@ class PydocServerTest(unittest.TestCase):
|
|||
return text
|
||||
|
||||
serverthread = pydoc._start_server(my_url_handler, port=0)
|
||||
self.assertIn('localhost', serverthread.docserver.address)
|
||||
|
||||
starttime = time.time()
|
||||
timeout = 1 #seconds
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue