mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-09-20 07:16:25 +08:00
Compare commits
4 commits
6ec5e7e6ef
...
5c15f247b8
Author | SHA1 | Date | |
---|---|---|---|
5c15f247b8 | |||
b3b30470fc | |||
41d91e75fc | |||
e35f942964 |
|
@ -33,7 +33,7 @@ import threading
|
|||
|
||||
from flask.json.provider import DefaultJSONProvider
|
||||
|
||||
DASHBOARD_VERSION = 'v4.0.3'
|
||||
DASHBOARD_VERSION = 'v4.0.4'
|
||||
CONFIGURATION_PATH = os.getenv('CONFIGURATION_PATH', '.')
|
||||
DB_PATH = os.path.join(CONFIGURATION_PATH, 'db')
|
||||
if not os.path.isdir(DB_PATH):
|
||||
|
@ -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:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "app",
|
||||
"version": "4.0.2",
|
||||
"version": "4.0.4",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue