diff --git a/gui/app.py b/gui/app.py index db2703a..7865530 100644 --- a/gui/app.py +++ b/gui/app.py @@ -2427,6 +2427,10 @@ def api_network_wifi_devices(): devices, error = get_nm_wifi_devices() + vpn_connections, vpn_error = ( + get_active_vpn_connections() + ) + if error: return jsonify( @@ -2498,7 +2502,10 @@ def api_network_wifi_devices(): "No Wi-Fi interfaces found." if not devices else None - ) + ), + "vpn_active": bool(vpn_connections), + "vpn_connections": vpn_connections, + "vpn_error": vpn_error } )