summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-07-05 17:56:05 +0000
committerErmal <eri@pfsense.org>2013-07-05 17:56:19 +0000
commit51b262421be32b99c0fd6ec78f0bc47e99e7dc14 (patch)
treeca8851e2ba999d6dc3592e9999139a9b76dd866f /etc/rc.newwanip
parentb877d6351c614f58b68a3ab2c7b04ea7ea282961 (diff)
downloadpfsense-51b262421be32b99c0fd6ec78f0bc47e99e7dc14.zip
pfsense-51b262421be32b99c0fd6ec78f0bc47e99e7dc14.tar.gz
Actually do this upon entering to get proper ip
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index b6f6a6a..5b3c483 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -46,6 +46,9 @@ require_once("rrd.inc");
if($g['booting'])
exit;
+/* NOTE: Check #2495 before being smart here */
+interface_ipalias_cleanup($interface, "inet4");
+
function restart_packages() {
global $oldip, $curwanip, $g;
@@ -97,7 +100,6 @@ system_resolvconf_generate(true);
/* write current WAN IP to file */
file_put_contents("{$g['vardb_path']}/{$interface}_ip", $curwanip);
-interface_ipalias_cleanup($interface, "inet4");
link_interface_to_vips($interface, "update");
unset($gre);
OpenPOWER on IntegriCloud