1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-07-05 00:40:15 +02:00
WGDashboard/test.py

5 lines
160 B
Python
Raw Normal View History

2020-10-18 07:10:13 +02:00
import os
import subprocess
try: status = subprocess.check_output("wg show wg0", shell=True)
except Exception: print("false")
else:print(status.decode("UTF-8"))