summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2011-02-21 15:46:23 +0100
committersmos <seth.mos@dds.nl>2011-02-21 15:46:23 +0100
commit9e050072237e97b81f04cee67c4f36c41ef13ae9 (patch)
tree217da8dfdc0cd51986d3fb058efc6dfc7a3ec29e /usr
parenta2a13c9725165196c292e5a4c8640fa5959cc28e (diff)
downloadpfsense-9e050072237e97b81f04cee67c4f36c41ef13ae9.zip
pfsense-9e050072237e97b81f04cee67c4f36c41ef13ae9.tar.gz
Prevent empty remote endpoints from skewing the log output
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_logs_ipsec.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/diag_logs_ipsec.php b/usr/local/www/diag_logs_ipsec.php
index b0bba94..560cd1a 100755
--- a/usr/local/www/diag_logs_ipsec.php
+++ b/usr/local/www/diag_logs_ipsec.php
@@ -54,6 +54,8 @@ $replace = array();
if(is_array($config['ipsec']['phase1']))
foreach($config['ipsec']['phase1'] as $ph1ent) {
$gateway = ipsec_get_phase1_dst($ph1ent);
+ if(!is_ipaddr($gateway))
+ continue;
$search[] = "/(racoon: )([A-Z:].*?)({$gateway}\[[0-9].+\]|{$gateway})(.*)/i";
$replace[] = "$1<strong>[{$ph1ent['descr']}]</strong>: $2$3$4";
}
OpenPOWER on IntegriCloud