From 11b3320277386855a1e5933f8d54afb9373bdcb6 Mon Sep 17 00:00:00 2001 From: Damien <135709986+damien-alt-sudo@users.noreply.github.com> Date: Wed, 24 Dec 2025 19:27:38 +0000 Subject: [PATCH 1/2] Feature: Add client_ip response from settings check API --- core/api_views.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/api_views.py b/core/api_views.py index c50d7fa6..e3459a38 100644 --- a/core/api_views.py +++ b/core/api_views.py @@ -142,8 +142,12 @@ class CoreSettingsViewSet(viewsets.ModelViewSet): }, status=status.HTTP_200_OK, ) - - return Response(in_network, status=status.HTTP_200_OK) + + response_data = { + **in_network, + "client_ip": str(client_ip) + } + return Response(response_data, status=status.HTTP_200_OK) return Response({}, status=status.HTTP_200_OK) From bfca6638701ba7b1970cc77c80ad90e53766c689 Mon Sep 17 00:00:00 2001 From: Damien <135709986+damien-alt-sudo@users.noreply.github.com> Date: Wed, 24 Dec 2025 19:30:03 +0000 Subject: [PATCH 2/2] Feature: Add client_ip response from settings check api to UI --- frontend/src/pages/Settings.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Settings.jsx b/frontend/src/pages/Settings.jsx index 46ad4710..d523869e 100644 --- a/frontend/src/pages/Settings.jsx +++ b/frontend/src/pages/Settings.jsx @@ -191,6 +191,8 @@ const SettingsPage = () => { useState(false); const [netNetworkAccessConfirmCIDRs, setNetNetworkAccessConfirmCIDRs] = useState([]); + + const [clientIpAddress, setClientIpAddress] = useState(null); const [proxySettingsSaved, setProxySettingsSaved] = useState(false); const [generalSettingsSaved, setGeneralSettingsSaved] = useState(false); @@ -508,6 +510,9 @@ const SettingsPage = () => { return; } + // Store the client IP + setClientIpAddress(check.client_ip); + // For now, only warn if we're blocking the UI const blockedAccess = check.UI; if (blockedAccess.length == 0) { @@ -1365,7 +1370,7 @@ Please ensure you have time to let this complete before proceeding.`} message={ <> - Your client is not included in the allowed networks for the web + Your client {clientIpAddress && `(${clientIpAddress}) `}is not included in the allowed networks for the web UI. Are you sure you want to proceed?