From 2dad1a3690e82c44255160d754fdd8973037ec10 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 30 Nov 2023 14:03:58 +0100 Subject: [PATCH] openvpn: cope with display and fix copy+paste errors --- src/www/widgets/widgets/openvpn.widget.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/www/widgets/widgets/openvpn.widget.php b/src/www/widgets/widgets/openvpn.widget.php index 8e253513d..6fe1abc44 100644 --- a/src/www/widgets/widgets/openvpn.widget.php +++ b/src/www/widgets/widgets/openvpn.widget.php @@ -119,7 +119,7 @@ foreach ($openvpn_cfg as $section => &$ovpncfg) { foreach ($server['client_list'] as $conn) :?>
-
"; }?> + ', array_filter([$conn['real_address'] ?? '', $conn['virtual_address'] ?? '', $conn['virtual_ipv6_address'] ?? ''])) ?> &$ovpncfg) { elseif (!empty($server['timestamp'])):?> -
"; }?> + ', array_filter([$server['real_address'] ?? '', $server['virtual_address'] ?? '', $server['virtual_ipv6_address'] ?? ''])) ?> '> @@ -162,10 +162,11 @@ foreach ($openvpn_cfg as $section => &$ovpncfg) {
-
"; }?> + ', array_filter([$client['real_address'] ?? '', $client['virtual_address'] ?? '', $client['virtual_ipv6_address'] ?? ''])) ?> '>