This commit is contained in:
Martin 2024-09-14 15:44:53 +08:00 committed by GitHub
commit bb91e68983
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1297,7 +1297,9 @@ def _regexMatch(regex, text):
def _getConfigurationList(): def _getConfigurationList():
# configurations = {} # 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): if _regexMatch("^(.{1,}).(conf)$", i):
i = i.replace('.conf', '') i = i.replace('.conf', '')
try: try: