ipsec: fix vpn-watch ikev2 skipping.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 3 Jul 2011 13:36:44 +0000 (15:36 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 3 Jul 2011 13:36:44 +0000 (15:36 +0200)
src/scripts/vpn-watch

index 2bd5168..63b2442 100755 (executable)
@@ -42,7 +42,8 @@ while ( $i == 0){
 my $status = `ipsec whack --status`;
 foreach (@vpnsettings){
  my @settings = split(/,/,$_);
-
+  
+  chomp($settings[30]);
   if ($settings[30] eq 'ikev2'){next;}
   if ($settings[27] ne 'RED'){next;}
   if ($settings[4] ne 'net'){next;}