From fb28aeb02582f923762c8d872dfee05d512b4f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 16 Feb 2010 19:07:46 +0000 Subject: Do not show disabled entries too. The OpenVPN API assumes that. --- config/openvpn-client-export/vpn_openvpn_export.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php index 1d8a6956..402811a3 100755 --- a/config/openvpn-client-export/vpn_openvpn_export.php +++ b/config/openvpn-client-export/vpn_openvpn_export.php @@ -47,6 +47,8 @@ $a_user = $config['system']['user']; $ras_server = array(); foreach($a_server as $sindex => & $server) { + if (isset($server['disable'])) + continue; $ras_user = array(); if (stripos($server['mode'], "server") === false) continue; -- cgit v1.2.3