summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-11-09 08:15:42 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2015-11-09 08:15:42 -0600
commit0c642a58239aaa10b9755ea581702c5d35b7eda6 (patch)
tree01a85b3c5dfdb2be10849298fdef515eb2d30359
parent3166d0c83e1026e7e49afe481a103f1673d6baf0 (diff)
downloadpfsense-0c642a58239aaa10b9755ea581702c5d35b7eda6.zip
pfsense-0c642a58239aaa10b9755ea581702c5d35b7eda6.tar.gz
Disable DEBUG on Status -> IPSEC -> SPD.
Show the installed security policies, instead of debug data.
-rw-r--r--src/usr/local/www/diag_ipsec_spd.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/usr/local/www/diag_ipsec_spd.php b/src/usr/local/www/diag_ipsec_spd.php
index c218664..c15b1a0 100644
--- a/src/usr/local/www/diag_ipsec_spd.php
+++ b/src/usr/local/www/diag_ipsec_spd.php
@@ -68,7 +68,6 @@
##|*MATCH=diag_ipsec_spd.php*
##|-PRIV
-define(DEBUG, true);
define(RIGHTARROW, '&#x25ba;');
define(LEFTARROW, '&#x25c0;');
@@ -79,12 +78,7 @@ $pgtitle = array(gettext("Status"), gettext("IPsec"), gettext("SPD"));
$shortcut_section = "ipsec";
include("head.inc");
-if (DEBUG) { // Dummy data for testing. REMOVE for production
- $spd = array ( 0 => array ( 'srcid' => '172.27.0.0/16', 'dstid' => '172.21.2.0/24', 'dir' => 'in' , 'proto' => 'esp', 'dst' => '184.57.8.247', 'src' => '208.123.73.7', 'reqid' => 'nique:1' ),
- 1 => array ( 'srcid' => '172.21.2.0/24', 'dstid' => '172.27.0.0/16', 'dir' => 'out', 'proto' => 'esp', 'dst' => '208.123.73.7', 'src' => '184.57.8.247', 'reqid' => 'nique:1' ) );
-}
-else
- $spd = ipsec_dump_spd();
+$spd = ipsec_dump_spd();
$tab_array = array();
$tab_array[0] = array(gettext("Overview"), false, "diag_ipsec.php");
OpenPOWER on IntegriCloud