summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_packet_capture.php
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-11-10 10:18:21 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2015-11-10 10:20:07 -0600
commit179ab6b36448e8bb06a639c303512905c93eb7e5 (patch)
tree5572c519232cdabe6be012904a655c3cad46b269 /src/usr/local/www/diag_packet_capture.php
parent94d494fbc0da7d85b0ef8f04dcd2bd4ab0e0a7c7 (diff)
downloadpfsense-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/diag_packet_capture.php')
-rw-r--r--src/usr/local/www/diag_packet_capture.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/diag_packet_capture.php b/src/usr/local/www/diag_packet_capture.php
index 5a6385d..5918754 100644
--- a/src/usr/local/www/diag_packet_capture.php
+++ b/src/usr/local/www/diag_packet_capture.php
@@ -123,6 +123,7 @@ if ($_POST['downloadbtn'] == gettext("Download Capture")) {
$pgtitle = array(gettext("Diagnostics"), gettext("Packet Capture"));
require_once("guiconfig.inc");
require_once("pfsense-utils.inc");
+require_once("ipsec.inc");
$fp = "/root/";
$fn = "packetcapture.cap";
@@ -136,9 +137,8 @@ $protos = array('icmp', 'icmp6', 'tcp', 'udp', 'arp', 'carp', 'esp',
$input_errors = array();
$interfaces = get_configured_interface_with_descr();
-if (isset($config['ipsec']['enable'])) {
- $interfaces['ipsec'] = "IPsec";
-}
+if (ipsec_enabled())
+ $interfaces['enc0'] = "IPsec";
foreach (array('server', 'client') as $mode) {
if (is_array($config['openvpn']["openvpn-{$mode}"])) {
foreach ($config['openvpn']["openvpn-{$mode}"] as $id => $setting) {
OpenPOWER on IntegriCloud