diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2015-11-10 10:18:21 -0600 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2015-11-10 10:20:07 -0600 |
commit | 179ab6b36448e8bb06a639c303512905c93eb7e5 (patch) | |
tree | 5572c519232cdabe6be012904a655c3cad46b269 /src/usr/local/www/status_graph.php | |
parent | 94d494fbc0da7d85b0ef8f04dcd2bd4ab0e0a7c7 (diff) | |
download | pfsense-179ab6b36448e8bb06a639c303512905c93eb7e5.zip pfsense-179ab6b36448e8bb06a639c303512905c93eb7e5.tar.gz |
Eliminate a few more cases of $config['ipsec']['enable'].
Mostly when dealing with enc0 interface.
Diffstat (limited to 'src/usr/local/www/status_graph.php')
-rw-r--r-- | src/usr/local/www/status_graph.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/usr/local/www/status_graph.php b/src/usr/local/www/status_graph.php index e663780..404158a 100644 --- a/src/usr/local/www/status_graph.php +++ b/src/usr/local/www/status_graph.php @@ -70,6 +70,7 @@ ##|-PRIV require("guiconfig.inc"); +require_once("ipsec.inc"); if ($_POST['width']) { $width = $_POST['width']; @@ -85,9 +86,8 @@ if ($_POST['height']) { // Get configured interface list $ifdescrs = get_configured_interface_with_descr(); -if (isset($config['ipsec']['enable'])) { +if (ipsec_enabled()) $ifdescrs['enc0'] = "IPsec"; -} foreach (array('server', 'client') as $mode) { if (is_array($config['openvpn']["openvpn-{$mode}"])) { foreach ($config['openvpn']["openvpn-{$mode}"] as $id => $setting) { @@ -248,9 +248,8 @@ events.push(function(){ <?php /* link the ipsec interface magically */ -if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enable'])) { +if (ipsec_enabled()) $ifdescrs['enc0'] = "IPsec"; -} ?> <div class="panel panel-default"> |