summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-05-05 16:16:22 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-05-05 16:16:22 -0500
commitf8e3f4023d7fdc65126e56636ac99553cdd38b5b (patch)
tree7900a4cefa93ac6c365c1b634267c52197908504
parentaf0dbca9c6b0c51bb4b0fc1d7f38e8383d7e81d8 (diff)
downloadvyatta-op-vpn-f8e3f4023d7fdc65126e56636ac99553cdd38b5b.tar.gz
vyatta-op-vpn-f8e3f4023d7fdc65126e56636ac99553cdd38b5b.zip
fix special case for wildcard peer since it uses 'EVENT_SA_REPLACE_IF_USED' on initial connection
-rw-r--r--lib/OPMode.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm
index 957c2f6..9071762 100644
--- a/lib/OPMode.pm
+++ b/lib/OPMode.pm
@@ -382,7 +382,7 @@ sub process_tunnels{
$tunnel_hash{$connectid}->{_inspi} = $3;
$tunnel_hash{$connectid}->{_inbytes} = $4;
}
- if ($line =~ /$spi:.*?EVENT_SA_REPLACE in (.*?)s;/){
+ if ($line =~ /$spi:.*?EVENT_SA_REPLACE.*? in (.*?)s;/){
$tunnel_hash{$connectid}->{_expire} = $1;
my $atime = $tunnel_hash{$connectid}->{_lifetime} -
$tunnel_hash{$connectid}->{_expire};