summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/OPMode.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm
index fb62cbb..f871533 100644
--- a/lib/OPMode.pm
+++ b/lib/OPMode.pm
@@ -651,7 +651,7 @@ sub process_tunnels{
# For each tunnel, loop through all ESP SA's and extract data from one most recently used
foreach my $connectid (keys %esp_hash) {
- foreach my $esp_sa (reverse sort {$esp_hash{$a}{last_used} <=> $esp_hash{$b}{last_used}} keys %{$esp_hash{$connectid}}) {
+ foreach my $esp_sa (sort {$esp_hash{$a}{last_used} <=> $esp_hash{$b}{last_used}} keys %{$esp_hash{$connectid}}) {
foreach my $data (keys %{$esp_hash{$connectid}{$esp_sa}}) {
$tunnel_hash{$connectid}->{$data} = $esp_hash{$connectid}{$esp_sa}{$data} if ($data =~ /^_/);
}