diff options
author | Ermal <eri@pfsense.org> | 2010-09-14 20:32:54 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-14 20:32:54 +0000 |
commit | 01f1b6012285ab25c266f3733b89e4b96b01132c (patch) | |
tree | 07c6814c69cfe94dd86008e63ead6f2fa80c6cec /etc/rc.newwanip | |
parent | 0c8cdb2571c032484662e1c0681830d9d4dc26c3 (diff) | |
download | pfsense-01f1b6012285ab25c266f3733b89e4b96b01132c.zip pfsense-01f1b6012285ab25c266f3733b89e4b96b01132c.tar.gz |
Ticket #867. Flush the cache when restarting apinger and also when rc.newwanip is called. also restart apinger earlier in to be on latest address asap.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-x | etc/rc.newwanip | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 9cb42f8..57c48bd 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -54,7 +54,7 @@ if(empty($argument)) { } else { $interface = convert_real_interface_to_friendly_interface_name($argument); $interface_real = $argument; - $curwanip = find_interface_ip($interface_real); + $curwanip = find_interface_ip($interface_real, true); if($curwanip == "") $curwanip = get_interface_ip($interface); } @@ -81,6 +81,9 @@ file_put_contents("{$g['vardb_path']}/{$interface}_cacheip", $curwanip); if (is_ipaddr($oldip) && $curwanip == $oldip) exit; +/* reconfigure our gateway monitor */ +setup_gateways_monitor(); + /* perform RFC 2136 DNS update */ services_dnsupdate_process($interface); @@ -93,9 +96,6 @@ vpn_ipsec_force_reload(); /* start OpenVPN server & clients */ openvpn_resync_all($interface); -/* reconfigure our gateway monitor */ -setup_gateways_monitor(); - /* signal filter reload */ unlink_if_exists("/tmp/config.cache"); filter_configure(); |