mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-09-20 07:16:25 +08:00
Merge e35f942964
into 891990b2f1
This commit is contained in:
commit
bb91e68983
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue