Added sorting and search to configuration list

This commit is contained in:
Donald Zou
2024-12-07 21:41:05 +08:00
parent d92e62e40b
commit 3e01079caf
6 changed files with 88 additions and 44 deletions

View File

@@ -3108,7 +3108,6 @@ def ProtocolsEnabled() -> list[str]:
protocols.append("wg")
return protocols
def InitWireguardConfigurationsList(startup: bool = False):
confs = os.listdir(DashboardConfig.GetConfig("Server", "wg_conf_path")[1])
confs.sort()
@@ -3164,7 +3163,6 @@ def startThreads():
scheduleJobThread.daemon = True
scheduleJobThread.start()
if __name__ == "__main__":
startThreads()
app.run(host=app_ip, debug=False, port=app_port)