summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index dfb9a45..193262e 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -830,11 +830,11 @@ pppoe:
EOD;
- for ($i = 0; $i < $g['n_pppoe_units']; $i++) {
+ for ($i = 0; $i < $pppoecfg['n_pppoe_units']; $i++) {
$mpdconf .= " load pppoe{$i}\n";
}
- for ($i = 0; $i < $g['n_pppoe_units']; $i++) {
+ for ($i = 0; $i < $pppoecfg['n_pppoe_units']; $i++) {
$clientip = long2ip(ip2long($pppoecfg['remoteip']) + $i);
$ngif = "ng" . ($i+1);
@@ -921,7 +921,7 @@ EOD;
$mpdlinks = "";
- for ($i = 0; $i < $g['n_pppoe_units']; $i++) {
+ for ($i = 0; $i < $pppoecfg['n_pppoe_units']; $i++) {
$mpdlinks .= <<<EOD
pppoe:
OpenPOWER on IntegriCloud