summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-03 17:44:58 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-04 09:06:07 -0300
commitaa752473de6736186ee0ab6355046b6383521091 (patch)
tree97011dde375a7b21b0652d08554a578a796be3f1 /etc/rc.newwanip
parent6c6ca768a0165db69c3a12fcb398c7b0be8925cb (diff)
downloadpfsense-aa752473de6736186ee0ab6355046b6383521091.zip
pfsense-aa752473de6736186ee0ab6355046b6383521091.tar.gz
Only reload racoon when there is at least one tunnel enabled on the interface used to call rc.newwanip(v6). It fixes #2922
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index d678927..00c3ac3 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -171,7 +171,7 @@ if (is_ipaddr($oldip) && $curwanip == $oldip) {
* could be failing back in which case we need to switch IPs back anyhow. */
/* reconfigure IPsec tunnels */
- vpn_ipsec_force_reload();
+ vpn_ipsec_force_reload($interface);
/* start OpenVPN server & clients */
if (substr($interface_real, 0, 4) != "ovpn")
@@ -194,7 +194,7 @@ services_dnsupdate_process($interface);
services_dyndns_configure($interface);
/* reconfigure IPsec tunnels */
-vpn_ipsec_force_reload();
+vpn_ipsec_force_reload($interface);
/* start OpenVPN server & clients */
if (substr($interface_real, 0, 4) != "ovpn")
OpenPOWER on IntegriCloud