Able to add peer

This commit is contained in:
donaldzou
2020-10-23 01:31:10 -04:00
parent 8c88440c3e
commit ea52529e06
6 changed files with 136 additions and 27 deletions
+4 -5
View File
@@ -1,5 +1,4 @@
import os
import subprocess
try: status = subprocess.check_output("wg show wg0", shell=True)
except Exception: print("false")
else:print(status.decode("UTF-8"))
from tinydb import TinyDB, Query
conf_db = TinyDB("json/conf.json")
print(conf_db.all())