diff options
author | Ermal <eri@pfsense.org> | 2013-07-05 17:56:05 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-07-05 17:56:05 +0000 |
commit | 0007f5b37582a156e02e4bccd37c20b2eb74c95d (patch) | |
tree | f057d85b1cb3ade0cd52727ffecc6b9b44fd15f0 /etc | |
parent | 4454f1f34841b07c2f8e5aa95b3e0d9a9e0ed9a2 (diff) | |
download | pfsense-0007f5b37582a156e02e4bccd37c20b2eb74c95d.zip pfsense-0007f5b37582a156e02e4bccd37c20b2eb74c95d.tar.gz |
Actually do this upon entering to get proper ip
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.newwanip | 4 |
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); |