mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
ipsec: change grep for ikev2 status display.
This commit is contained in:
@@ -370,7 +370,7 @@ END
|
|||||||
} else {
|
} else {
|
||||||
foreach my $line (@status) {
|
foreach my $line (@status) {
|
||||||
if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||
|
if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||
|
||||||
($line =~/ $confighash{$key}[1]\{.*INSTALLED/ ))
|
($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>";
|
$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>";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>";
|
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) {
|
foreach my $line (@status) {
|
||||||
if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||
|
if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||
|
||||||
($line =~ / $confighash{$key}[1]\{.*INSTALLED/))
|
($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>";
|
$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>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user