mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Ticket #843. Disable for now bringing down the interface unless we want to destroy it. While this is not all correct this seems to help alleviate problems when the parent is shared on cloned types.
This commit is contained in:
parent
c12fb6cb54
commit
e49a2031bd
@ -867,14 +867,16 @@ function interface_bring_down($interface = "wan", $destroy = false) {
|
||||
unlink_if_exists("{$g['varetc_path']}/dhclient_{$interface}.conf");
|
||||
if(does_interface_exist("$realif")) {
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true);
|
||||
pfSense_interface_flags($realif, -IFF_UP);
|
||||
if ($destroy == true)
|
||||
pfSense_interface_flags($realif, -IFF_UP);
|
||||
mwexec("/usr/sbin/arp -d -i {$realif} -a");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if(does_interface_exist("$realif")) {
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true);
|
||||
pfSense_interface_flags($realif, -IFF_UP);
|
||||
if ($destroy == true)
|
||||
pfSense_interface_flags($realif, -IFF_UP);
|
||||
mwexec("/usr/sbin/arp -d -i {$realif} -a");
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user