summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-01-03 21:29:28 +0000
committerErmal <eri@pfsense.org>2011-01-03 21:29:28 +0000
commit55c51af7293cf6ac65d6c1fee15071aef0558482 (patch)
tree7d9146d31630e5d2d1bfc9ab35a5c026ac018ce8 /etc/rc.newwanip
parent3dfc2d1a82e68f81856427316973f3fe480d603b (diff)
downloadpfsense-55c51af7293cf6ac65d6c1fee15071aef0558482.zip
pfsense-55c51af7293cf6ac65d6c1fee15071aef0558482.tar.gz
Ticket #1152. Call rc.newwanip even on openvpn linkup event to do the correct reloading of gateways and services. Add a safe belt to avoid a recursion in openvpn itself from rc.newwanip.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index a31cddc..b63996c 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -117,7 +117,8 @@ services_dyndns_configure($interface);
vpn_ipsec_force_reload();
/* start OpenVPN server & clients */
-openvpn_resync_all($interface);
+if (substr($interface_real, 0, 4) != "ovpn")
+ openvpn_resync_all($interface);
/* reload graphing functions */
enable_rrd_graphing();
OpenPOWER on IntegriCloud