mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
ipsec: change status display in cgi's for charon.
This commit is contained in:
@@ -369,7 +369,9 @@ END
|
||||
$active = "<table cellpadding='2' cellspacing='0' bgcolor='${Header::colourblue}' width='100%'><tr><td align='center'><b><font color='#FFFFFF'>$Lang::tr{'capsclosed'}</font></b></td></tr></table>";
|
||||
} else {
|
||||
foreach my $line (@status) {
|
||||
if ($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) {
|
||||
if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||
|
||||
($line =~/ $confighash{$key}[1]\[.*ESTABLISHED/ ))
|
||||
{
|
||||
$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>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2539,7 +2539,9 @@ END
|
||||
# get real state
|
||||
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/) {
|
||||
if ($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||
|
||||
($line =~ / $confighash{$key}[1]\[.*ESTABLISHED/))
|
||||
{
|
||||
$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