From dbbcfe957b216f33d6c30e37c88bedfa16cf5ab2 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Thu, 24 Apr 2025 18:22:15 +0800 Subject: [PATCH] Update dashboard.py --- src/dashboard.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dashboard.py b/src/dashboard.py index d5ab3fb..f46e9b3 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -362,10 +362,10 @@ class WireguardConfiguration: "PrivateKey": self.PrivateKey, "Address": self.Address, "ListenPort": self.ListenPort, - "PreUp": f"{self.PreUp}", - "PreDown": f"{self.PreDown}", - "PostUp": f"{self.PostUp}", - "PostDown": f"{self.PostDown}", + "PreUp": f"", + "PreDown": f"", + "PostUp": f"", + "PostDown": f"", "SaveConfig": "true" } @@ -1047,7 +1047,7 @@ class WireguardConfiguration: dataChanged = False with open(self.configPath, 'r') as f: original = [l.rstrip("\n") for l in f.readlines()] - allowEdit = ["Address", "PreUp", "PostUp", "PreDown", "PostDown", "ListenPort"] + allowEdit = ["Address", "ListenPort"] if self.Protocol == 'awg': allowEdit += ["Jc", "Jmin", "Jmax", "S1", "S2", "H1", "H2", "H3", "H4"] start = original.index("[Interface]")