Fixed #357: Brought back IP Address and Port

But still manually restart WGDashboard is needed
This commit is contained in:
Donald Zou
2024-10-03 15:24:50 +08:00
parent 54bae43d2e
commit 7c0bf4f137
13 changed files with 179 additions and 31 deletions

View File

@@ -1228,6 +1228,8 @@ class DashboardConfig:
self.__config[section][key] = "true"
else:
self.__config[section][key] = "false"
if type(value) in [int, float]:
self.__config[section][key] = str(value)
else:
self.__config[section][key] = value
return self.SaveConfig(), ""