]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Vpn-watch: it is faster to restart the whole ipsec.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 21 Jun 2010 21:22:58 +0000 (23:22 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 21 Jun 2010 21:22:58 +0000 (23:22 +0200)
src/scripts/vpn-watch

index 08d562be8499bb44c75b31c2e60357625fd1649d..287bf8fdc01fa55c0eeece6559b79e6e9d3cc8c1 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl 
 ##################################################
-#####     VPN-Watch.pl     Version 0.4a      #####
+#####     VPN-Watch.pl     Version 0.4b      #####
 ##################################################
 #                                                #
 #   VPN-Watch is part of the IPFire Firewall     #
@@ -54,7 +54,7 @@ foreach (@vpnsettings){
   
   if ( $established  eq '' || $connected eq '' ){
     logger("Remote IP for host $remotehostname has changed or no connection is established, restarting connection to $remoteip.");
-    system("/usr/local/bin/ipsecctrl S $settings[0]");
+    system("/usr/local/bin/ipsecctrl S");
     last; #all connections will reloaded
   }
  }