mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do this check earlier rather than later, instead of moving the interface_bring_down call.
This commit is contained in:
parent
0a28d38599
commit
3896d93ec5
@ -2350,7 +2350,18 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
|
||||
if (!$g['booting']) {
|
||||
/* remove all IPv4 addresses */
|
||||
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -alias", true) == 0);
|
||||
interface_bring_down($interface, true);
|
||||
|
||||
switch ($wancfg['ipaddr']) {
|
||||
case 'pppoe':
|
||||
case 'l2tp':
|
||||
case 'pptp':
|
||||
case 'ppp':
|
||||
interface_bring_down($interface, true);
|
||||
break;
|
||||
default:
|
||||
interface_bring_down($interface);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* wireless configuration? */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user