This commit is contained in:
root
2022-10-23 13:09:59 +03:00
parent f95f162107
commit 97f3055449

2
gen.py
View File

@ -168,7 +168,7 @@ def wg_if_status(config="all"):
else:
pass
for interface in set(wg_state):
cmd = ["systemctl", "show", f"wg-quick@{interface}", "--property", "InactiveEnterTimestamp"]
cmd = ["systemctl", "show", f"wg-quick@{interface}", "--property", "ActiveEnterTimestamp"]
proc = Popen(cmd,
stdout=PIPE,
stderr=PIPE,