diff options
author | jim-p <jimp@pfsense.org> | 2012-11-02 00:29:04 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-11-02 00:29:45 -0400 |
commit | 158f0e7de9c2b4bfb90b7f535e219a144360a51a (patch) | |
tree | 1fed45ebeb1285174c940bb05462fb428bc99a20 /etc/rc.newwanip | |
parent | e8f35171571cf6d5e13d821d9b6b65c8060fc790 (diff) | |
download | pfsense-158f0e7de9c2b4bfb90b7f535e219a144360a51a.zip pfsense-158f0e7de9c2b4bfb90b7f535e219a144360a51a.tar.gz |
Don't resync openvpn if rc.newwanip is being run on an openvpn interface, to avoid a loop.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-x | etc/rc.newwanip | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 2812d4b..3729438 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -170,7 +170,8 @@ if (is_ipaddr($oldip) && $curwanip == $oldip) { vpn_ipsec_force_reload(); /* start OpenVPN server & clients */ - openvpn_resync_all($interface); + if (substr($interface, 0, 4) != "ovpn") + openvpn_resync_all($interface); /* perform RFC 2136 DNS update */ services_dnsupdate_process($interface); |