mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-15 09:36:59 +00:00
Update
This commit is contained in:
parent
927e637d88
commit
681558126d
@ -29,10 +29,6 @@ def login_required(f):
|
||||
def createClientBlueprint(wireguardConfigurations: dict[WireguardConfiguration], dashboardConfig: DashboardConfig):
|
||||
from modules.DashboardClients import DashboardClients
|
||||
|
||||
|
||||
|
||||
with current_app.app_context():
|
||||
DashboardClients = DashboardClients(wireguardConfigurations)
|
||||
client = Blueprint('client', __name__, template_folder=os.path.abspath("./static/client/dist"))
|
||||
prefix = f'{dashboardConfig.GetConfig("Server", "app_prefix")[1]}/client'
|
||||
|
||||
|
@ -1284,7 +1284,8 @@ DashboardLogger: DashboardLogger = DashboardLogger()
|
||||
|
||||
InitWireguardConfigurationsList(startup=True)
|
||||
|
||||
app.register_blueprint(createClientBlueprint(WireguardConfigurations, DashboardConfig))
|
||||
with app.app_context():
|
||||
app.register_blueprint(createClientBlueprint(WireguardConfigurations, DashboardConfig))
|
||||
|
||||
def startThreads():
|
||||
bgThread = threading.Thread(target=peerInformationBackgroundThread, daemon=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user