mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixes #667. Do not bring down mpd5 if the interface is configured for dial on-demand.
This commit is contained in:
parent
0bbf8900e0
commit
a138f4fbc0
@ -812,9 +812,18 @@ function interface_bring_down($interface = "wan", $destroy = false) {
|
||||
case "pppoe":
|
||||
case "pptp":
|
||||
case "l2tp":
|
||||
killbypid("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid");
|
||||
sleep(2);
|
||||
unlink_if_exists("{$g['varetc_path']}/mpd_{$interface}.conf");
|
||||
if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) {
|
||||
foreach ($config['ppps']['ppp'] as $pppid => $ppp) {
|
||||
if ($realif == $ppp['if']) {
|
||||
if (!isset($ppp['ondemand'])) {
|
||||
killbypid("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid");
|
||||
sleep(2);
|
||||
unlink_if_exists("{$g['varetc_path']}/mpd_{$interface}.conf");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "carpdev-dhcp":
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user