summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-07-05 17:48:12 +0000
committerErmal <eri@pfsense.org>2013-07-05 17:48:46 +0000
commitb877d6351c614f58b68a3ab2c7b04ea7ea282961 (patch)
treec7f59f9c2425a18581e51751abde65c798439399 /etc/rc.newwanip
parent5fb149ba4b3fc50d237c6e1481b1732bb0829cb1 (diff)
downloadpfsense-b877d6351c614f58b68a3ab2c7b04ea7ea282961.zip
pfsense-b877d6351c614f58b68a3ab2c7b04ea7ea282961.tar.gz
Fixes #2495. On trigering of rc.newwanip remove all ipaliases from the interface since they will be readded later on. This will also make sure to have the correct address order
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 939488b..b6f6a6a 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -97,6 +97,7 @@ 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