mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Configurable back-end port
This commit is contained in:
@@ -8,6 +8,7 @@ from PySide6.QtWebEngineCore import QWebEnginePage, QWebEngineSettings
|
||||
from PySide6.QtWebEngineWidgets import QWebEngineView
|
||||
|
||||
from game.server.settings import ServerSettings
|
||||
from qt_ui.liberation_install import server_port
|
||||
from qt_ui.models import GameModel
|
||||
|
||||
|
||||
@@ -44,7 +45,7 @@ class QLiberationMap(QWebEngineView):
|
||||
url = QUrl("http://localhost:3000")
|
||||
else:
|
||||
url = QUrl.fromLocalFile(str(Path("client/build/index.html").resolve()))
|
||||
server_settings = ServerSettings.get()
|
||||
server_settings = ServerSettings.get(server_port())
|
||||
host = server_settings.server_bind_address
|
||||
if host.startswith("::"):
|
||||
host = f"[{host}]"
|
||||
|
||||
Reference in New Issue
Block a user