From 57ba1e9023b0f1f3499cc888f66827a81574bb41 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 26 Jun 2011 23:16:41 +0200 Subject: [PATCH] ipsec: change check if a ikev2 tunnel is up. --- html/cgi-bin/index.cgi | 2 +- html/cgi-bin/vpnmain.cgi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index 32ae7ff388..eec3f9bf36 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -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 = "
$Lang::tr{'capsopen'}
"; } diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index 3d5a360f13..3785b90a5d 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -2540,7 +2540,7 @@ END my $active = "
$Lang::tr{'capsclosed'}
"; foreach my $line (@status) { if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) || - ($line =~ / $confighash{$key}[1]\[.*ESTABLISHED/)) + ($line =~ / $confighash{$key}[1]\{.*INSTALLED/)) { $active = "
$Lang::tr{'capsopen'}
"; } -- 2.39.2