ipsec: change check if a ikev2 tunnel is up.

This commit is contained in:
Arne Fitzenreiter
2011-06-26 23:16:41 +02:00
parent a3323b6fde
commit 57ba1e9023
2 changed files with 2 additions and 2 deletions

View File

@@ -370,7 +370,7 @@ END
} else {
foreach my $line (@status) {
if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||
($line =~/ $confighash{$key}[1]\[.*ESTABLISHED/ ))
($line =~/ $confighash{$key}[1]\{.*INSTALLED/ ))
{
$active = "<table cellpadding='2' cellspacing='0' bgcolor='${Header::colourgreen}' width='100%'><tr><td align='center'><b><font color='#FFFFFF'>$Lang::tr{'capsopen'}</font></b></td></tr></table>";
}

View File

@@ -2540,7 +2540,7 @@ END
my $active = "<table cellpadding='2' cellspacing='0' bgcolor='${Header::colourred}' width='100%'><tr><td align='center'><b><font color='#FFFFFF'>$Lang::tr{'capsclosed'}</font></b></td></tr></table>";
foreach my $line (@status) {
if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||
($line =~ / $confighash{$key}[1]\[.*ESTABLISHED/))
($line =~ / $confighash{$key}[1]\{.*INSTALLED/))
{
$active = "<table cellpadding='2' cellspacing='0' bgcolor='${Header::colourgreen}' width='100%'><tr><td align='center'><b><font color='#FFFFFF'>$Lang::tr{'capsopen'}</font></b></td></tr></table>";
}