X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Fscripts%2Fvpn-watch;fp=src%2Fscripts%2Fvpn-watch;h=c533f064e3dcc8f4f54c637f3e5fc35d67cd9404;hp=74a4dc5c1adb8adf1c4cd0dbfe12300a43f6971d;hb=98ccaf67ae109bc50f52516ac5c9ef39133930f3;hpb=ba149d470bcc8056f4e55ddeef7aa90eb1f54313 diff --git a/src/scripts/vpn-watch b/src/scripts/vpn-watch index 74a4dc5c1a..c533f064e3 100755 --- a/src/scripts/vpn-watch +++ b/src/scripts/vpn-watch @@ -1,6 +1,6 @@ #!/usr/bin/perl ################################################## -##### VPN-Watch.pl Version 0.4 ##### +##### VPN-Watch.pl Version 0.4a ##### ################################################## # # # VPN-Watch is part of the IPFire Firewall # @@ -55,7 +55,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]"); - next; + last; #all connections will reloaded } if ($debug){logger("All connections may be fine nothing was done.");} }