This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree".
The branch, master has been updated via aa7970cc87ef9b4dfb8e771b6d80e457ef27658b (commit) from 9f9298d99459a03e3497f67a8accdf7c29c6a96a (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit aa7970cc87ef9b4dfb8e771b6d80e457ef27658b Author: Christian Schmidt maniacikarus@ipfire.org Date: Sat Jan 22 11:16:39 2011 +0100
Fix vpn-watch script not restarting minutly when remote ip has changed.
-----------------------------------------------------------------------
Summary of changes: src/scripts/vpn-watch | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Difference in files: diff --git a/src/scripts/vpn-watch b/src/scripts/vpn-watch index ee6807c..466aaa6 100755 --- a/src/scripts/vpn-watch +++ b/src/scripts/vpn-watch @@ -57,7 +57,7 @@ foreach (@vpnsettings){ my $ipmatch= `echo "$status" | grep '$remoteip' | grep '$settings[2]'`; my $established= `echo "$status" | grep '$settings[2]' | grep 'erouted;'`;
- if ( $ipmatch eq '' && $status ne ''){ + if ( $round == 0 && $ipmatch eq '' && $status ne ''){ logger("Remote IP for host $remotehostname($remoteip) has changed, restarting ipsec."); system("/usr/local/bin/ipsecctrl S $settings[0]"); $round=0;
hooks/post-receive -- IPFire 2.x development tree