Dropping support plan to OpenBSD

This commit is contained in:
Donald Zou
2024-11-23 18:08:14 +08:00
parent 71ee784003
commit 8e2934533b
2 changed files with 2 additions and 43 deletions

View File

@@ -973,13 +973,13 @@ class WireguardConfiguration:
self.getStatus()
if self.Status:
try:
check = subprocess.call(f"wg-quick down {self.Name}",
check = subprocess.check_output(f"wg-quick down {self.Name}",
shell=True, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as exc:
return False, str(exc.output.strip().decode("utf-8"))
else:
try:
check = subprocess.call(f"wg-quick up {self.Name}", shell=True, stderr=subprocess.STDOUT)
check = subprocess.check_output(f"wg-quick up {self.Name}", shell=True, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as exc:
return False, str(exc.output.strip().decode("utf-8"))
self.getStatus()