diff --git a/docker/Dockerfile b/docker/Dockerfile index 969743ff..e0b0b3b4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -55,7 +55,7 @@ RUN make && chmod +x wg* # # 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 @@ -91,7 +91,7 @@ RUN . /opt/wgdashboard/src/venv/bin/activate && \ # # 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" # Install only the runtime dependencies diff --git a/src/dashboard.py b/src/dashboard.py index f08c3d3f..ec57ef9d 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1238,8 +1238,9 @@ def API_ping_getAllPeersIpAddress(): ip = ipaddress.ip_network(x, strict=False) except ValueError as e: app.logger.error(f"Failed to parse IP address of {p.id} - {c.Name}") - if len(list(ip.hosts())) == 1: - parsed.append(str(ip.hosts()[0])) + host = list(ip.hosts()) + if len(host) == 1: + parsed.append(str(host[0])) endpoint = p.endpoint.replace(" ", "").replace("(none)", "") if len(p.name) > 0: cips[f"{p.name} - {p.id}"] = {