Merge pull request #1031 from WGDashboard/v4.3.2-dev

v4.3.1
This commit is contained in:
Donald Zou
2025-12-13 23:26:41 +08:00
committed by GitHub
5 changed files with 8 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ RUN make && chmod +x wg*
# #
# Use the python-alpine image for building pip dependencies # Use the python-alpine image for building pip dependencies
FROM python:3.13.3-alpine AS pip-builder FROM python:3.14-alpine AS pip-builder
ARG TARGETPLATFORM ARG TARGETPLATFORM
@@ -91,7 +91,7 @@ RUN . /opt/wgdashboard/src/venv/bin/activate && \
# #
# Running with the python-alpine image. # Running with the python-alpine image.
FROM python:3.13.3-alpine AS final FROM python:3.14-alpine AS final
LABEL maintainer="dselen@nerthus.nl" LABEL maintainer="dselen@nerthus.nl"
# Install only the runtime dependencies # Install only the runtime dependencies

View File

@@ -191,6 +191,7 @@ start_and_monitor() {
echo "Starting WGDashboard directly with Gunicorn..." echo "Starting WGDashboard directly with Gunicorn..."
[[ ! -d ${WGDASH}/src/log ]] && mkdir ${WGDASH}/src/log [[ ! -d ${WGDASH}/src/log ]] && mkdir ${WGDASH}/src/log
[[ ! -d ${WGDASH}/src/download ]] && mkdir ${WGDASH}/src/download
${WGDASH}/src/venv/bin/gunicorn --config ${WGDASH}/src/gunicorn.conf.py ${WGDASH}/src/venv/bin/gunicorn --config ${WGDASH}/src/gunicorn.conf.py
resolvconf -u resolvconf -u

View File

@@ -1238,8 +1238,9 @@ def API_ping_getAllPeersIpAddress():
ip = ipaddress.ip_network(x, strict=False) ip = ipaddress.ip_network(x, strict=False)
except ValueError as e: except ValueError as e:
app.logger.error(f"Failed to parse IP address of {p.id} - {c.Name}") app.logger.error(f"Failed to parse IP address of {p.id} - {c.Name}")
if len(list(ip.hosts())) == 1: host = list(ip.hosts())
parsed.append(str(ip.hosts()[0])) if len(host) == 1:
parsed.append(str(host[0]))
endpoint = p.endpoint.replace(" ", "").replace("(none)", "") endpoint = p.endpoint.replace(" ", "").replace("(none)", "")
if len(p.name) > 0: if len(p.name) > 0:
cips[f"{p.name} - {p.id}"] = { cips[f"{p.name} - {p.id}"] = {

View File

@@ -16,7 +16,7 @@ from .DashboardAPIKey import DashboardAPIKey
class DashboardConfig: class DashboardConfig:
DashboardVersion = 'v4.3.0.3' DashboardVersion = 'v4.3.1'
ConfigurationPath = os.getenv('CONFIGURATION_PATH', '.') ConfigurationPath = os.getenv('CONFIGURATION_PATH', '.')
ConfigurationFilePath = os.path.join(ConfigurationPath, 'wg-dashboard.ini') ConfigurationFilePath = os.path.join(ConfigurationPath, 'wg-dashboard.ini')

View File

@@ -1,6 +1,6 @@
{ {
"name": "app", "name": "app",
"version": "4.3.0.3", "version": "4.3.1",
"private": true, "private": true,
"type": "module", "type": "module",
"module": "es2022", "module": "es2022",