Commit 3bc07e7c authored by Ad Schellevis's avatar Ad Schellevis

(filter, plugins, ppppoe) use pppoe.items for nat outbound

parent 30266056
......@@ -1150,8 +1150,8 @@ function filter_nat_rules_automatic_tonathosts(&$FilterIflist, $with_descr = fal
}
/* PPPoE subnet */
if (isset($FilterIflist['pppoe']['networks']) && is_array($FilterIflist['pppoe']['networks']))
foreach ($FilterIflist['pppoe']['networks'] as $pppoe) {
if (isset($FilterIflist['pppoe']['items']) && is_array($FilterIflist['pppoe']['items']))
foreach ($FilterIflist['pppoe']['items'] as $pppoe) {
if (is_private_ip($pppoe['ip'])) {
$tonathosts[] = "{$pppoe['sa']}/{$pppoe['sn']}";
$descriptions[] = gettext("PPPoE server");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment