flandre/test/legacy/tcp.py
2025-05-11 15:50:08 +08:00

7 lines
225 B
Python

import subprocess
if __name__ == '__main__':
code = subprocess.run(['curl', '-m', '1', 'http://11.6.1.66:5556'], stderr=subprocess.DEVNULL,
stdout=subprocess.DEVNULL).returncode
print(code)