mirror of
https://github.com/WGDashboard/WGDashboard.git
synced 2026-08-04 15:03:02 +00:00
Able to add peer
This commit is contained in:
+4
-5
@@ -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())
|
||||
Reference in New Issue
Block a user