mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only run ifconfig if a real ip and netmask exists instead of ifconfig $int /
This commit is contained in:
parent
13277cbf52
commit
851e7d41a6
@ -898,8 +898,9 @@ function interfaces_wan_configure() {
|
||||
escapeshellarg($wancfg['ipaddr'] . "/" . $wancfg['subnet']) .
|
||||
" " . escapeshellarg($wancfg['pointtopoint']) . " up");
|
||||
} else {
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($wancfg['if']) . " " .
|
||||
escapeshellarg($wancfg['ipaddr'] . "/" . $wancfg['subnet']));
|
||||
if($wancfg['ipaddr'] && $wancfg['subnet'])
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($wancfg['if']) . " " .
|
||||
escapeshellarg($wancfg['ipaddr'] . "/" . $wancfg['subnet']));
|
||||
}
|
||||
/* install default route */
|
||||
mwexec("/sbin/route delete default", true);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user