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:05 +0000
commit0007f5b37582a156e02e4bccd37c20b2eb74c95d (patch)
treef057d85b1cb3ade0cd52727ffecc6b9b44fd15f0 /etc/rc.newwanip
parent4454f1f34841b07c2f8e5aa95b3e0d9a9e0ed9a2 (diff)
downloadpfsense-0007f5b37582a156e02e4bccd37c20b2eb74c95d.zip
pfsense-0007f5b37582a156e02e4bccd37c20b2eb74c95d.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