mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +03:00
Update basic.py
This commit is contained in:
parent
99e2216813
commit
37a8ac818c
@ -50,7 +50,7 @@ def test_https_server(hostname, port, proxy=None):
|
|||||||
cmdline.append(url)
|
cmdline.append(url)
|
||||||
print('subprocess.run', ' '.join(cmdline))
|
print('subprocess.run', ' '.join(cmdline))
|
||||||
result = subprocess.run(cmdline, capture_output=True,
|
result = subprocess.run(cmdline, capture_output=True,
|
||||||
timeout=1, text=True, encoding='utf-8')
|
timeout=10, text=True, encoding='utf-8')
|
||||||
print(result.stderr, end='')
|
print(result.stderr, end='')
|
||||||
return 'Error code: 404' in result.stdout
|
return 'Error code: 404' in result.stdout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user