mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Deleting a IP alias needs the IP as a argument, just issuing delete is not valid syntax
This commit is contained in:
parent
9006e9f8b5
commit
b15ae348f3
@ -840,13 +840,11 @@ function interface_bring_down($interface = "wan", $destroy = false) {
|
||||
sleep(1);
|
||||
unlink_if_exists("{$g['varetc_path']}/dhclient_{$interface}.conf");
|
||||
if(does_interface_exist("$realif")) {
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete");
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " down");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if(does_interface_exist("$realif")) {
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete");
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " down");
|
||||
}
|
||||
break;
|
||||
@ -2806,4 +2804,4 @@ function setup_pppoe_reset_file($interface, $status) {
|
||||
unlink_if_exists(CRON_PPPOE_CMD_FILE);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user