Merge pull request #363 from martin-g-it/patch-1

Update dashboard.py - sort WG configurations
This commit is contained in:
Donald Zou 2024-10-04 20:15:04 +08:00 committed by GitHub
commit 31d8af642d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1303,7 +1303,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: