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: else:
pass pass
for interface in set(wg_state): 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, proc = Popen(cmd,
stdout=PIPE, stdout=PIPE,
stderr=PIPE, stderr=PIPE,