diff options
author | Scott Dale <sdale@pfsense.org> | 2007-07-24 03:48:33 +0000 |
---|---|---|
committer | Scott Dale <sdale@pfsense.org> | 2007-07-24 03:48:33 +0000 |
commit | d1ef3e5ae0cbcfb7d9370cd8a318a024402cc285 (patch) | |
tree | fc3ad08365c8f2cf542ad3bbec4b1a718016583a /usr/local/www/widgets/include | |
parent | 88bcd1d262bf67e573e9234e6f5129d2d1a7b297 (diff) | |
download | pfsense-d1ef3e5ae0cbcfb7d9370cd8a318a024402cc285.zip pfsense-d1ef3e5ae0cbcfb7d9370cd8a318a024402cc285.tar.gz |
show configuration screen to allow option to display detail IPsec info (will help with load times for many tunnels)
Diffstat (limited to 'usr/local/www/widgets/include')
-rw-r--r-- | usr/local/www/widgets/include/ipsec.inc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usr/local/www/widgets/include/ipsec.inc b/usr/local/www/widgets/include/ipsec.inc index 0a7bb2c..ed869b2 100644 --- a/usr/local/www/widgets/include/ipsec.inc +++ b/usr/local/www/widgets/include/ipsec.inc @@ -33,10 +33,13 @@ function output_ipsec_tunnel_status($tunnel) { $foundsrc = false; $founddst = false; foreach($sad as $sa) { - $sourceIF = find_ip_interface($sa['src']); - $sourceIF = convert_real_interface_to_friendly_interface_name($sourceIF); - if($sourceIF == $tunnel['interface']) - $foundsrc = true; + if (!$foundsrc){ + $sourceIF = find_ip_interface($sa['src']); + $sourceIF = convert_real_interface_to_friendly_interface_name($sourceIF); + + if($sourceIF == $tunnel['interface']) + $foundsrc = true; + } if($sa['dst'] == $tunnel['remote-gateway']) $founddst = true; } @@ -49,6 +52,4 @@ function output_ipsec_tunnel_status($tunnel) { } return $iconfn; } - - ?>
\ No newline at end of file |