From 8de68a2cd905a3dd1d068cbb002f62abcfe6b157 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Tue, 15 May 2007 05:13:18 +0000 Subject: Add a function to forcefully reload VPN on wan ip change. --- etc/rc.newwanip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/rc.newwanip') diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 3f9f2a0..6653d78 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -81,7 +81,7 @@ if($old_ip) { } /* reconfigure IPsec tunnels */ -vpn_ipsec_configure(true); +vpn_ipsec_force_reload(); /* start OpenVPN server & clients */ exec("killall -HUP openvpn 2>/dev/null"); @@ -132,4 +132,4 @@ log_error("Configuring slbd"); return 0; -?> \ No newline at end of file +?> -- cgit v1.1