summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-01-07 17:44:26 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-01-07 17:44:26 -0200
commit1b0074d5d139e71e1540230c3d2e36d71ccaf550 (patch)
treed3f7607905514b9c28dfe9a1532bb2f2924de6f7 /etc
parent5c94aa1285a27dce4cb5bf8dde9d5f3ea385f76e (diff)
downloadpfsense-1b0074d5d139e71e1540230c3d2e36d71ccaf550.zip
pfsense-1b0074d5d139e71e1540230c3d2e36d71ccaf550.tar.gz
Interface assignment wrongly changing:
When WAN is set to PPPoE and user set other interfaces IP address using console, it wrongly change the interface assignment to use the same device of wan. It was caused by a hard coded "wan" on console_get_interface_from_ppp() call, when it should use $interface instead. It should fix #2074
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.initial.setlanip2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip
index e062e6e..774cda0 100755
--- a/etc/rc.initial.setlanip
+++ b/etc/rc.initial.setlanip
@@ -299,7 +299,7 @@ function console_configure_ip_address($version) {
add_gateway_to_config($interface, $gwip, $inet_type);
}
}
- $ifppp = console_get_interface_from_ppp(get_real_interface("wan"));
+ $ifppp = console_get_interface_from_ppp(get_real_interface($interface));
if (!empty($ifppp))
$ifaceassigned = $ifppp;
}
OpenPOWER on IntegriCloud