We don't want to detach netgraph nodes from interfaces that are used by

any PPPoE/PPTP/L2TP configurations.
This commit is contained in:
gnhb 2011-01-23 09:49:51 +07:00
parent e9d6c27f64
commit 3eb00b491f

View File

@ -126,6 +126,13 @@ function interface_netgraph_needed($interface = "wan") {
$found = true;
break;
}
$ports = explode(',',$ppp['ports']);
foreach($ports as $pid => $port){
if ($realif == $port) {
$found = true;
break;
}
}
}
}
}