Update dashboard.py - sort WG configurations

Sort WG configurations alphabetically
This commit is contained in:
Martin
2024-09-04 14:40:04 +02:00
committed by GitHub
parent e21853286e
commit e35f942964

View File

@@ -1297,7 +1297,9 @@ def _regexMatch(regex, text):
def _getConfigurationList():
# configurations = {}
for i in os.listdir(WG_CONF_PATH):
items = os.listdir(WG_CONF_PATH)
items.sort()
for i in items:
if _regexMatch("^(.{1,}).(conf)$", i):
i = i.replace('.conf', '')
try: