Revision 5264023a
Added by Scott Ullrich over 19 years ago
etc/inc/vpn.inc | ||
---|---|---|
858 | 858 |
$clientip = long2ip(ip2long($pppoecfg['remoteip']) + $i); |
859 | 859 |
$ngif = "ng" . ($i+1); |
860 | 860 |
|
861 |
if($pppoecfg['radius']['issueradiusips']) { |
|
862 |
$isssue_ip_type = "set ipcp ranges {$pppoecfg['localip']}/32 {$clientip}/32"; |
|
863 |
} else { |
|
861 |
if($pppoecfg['radius']['issueradiusips'] && isset($pppoecfg['radius']['enable'])) { |
|
864 | 862 |
$isssue_ip_type = "set ipcp ranges {$pppoecfg['localip']}/32 0.0.0.0/0"; |
865 |
$isssue_ip_type .="\nset ipcp yes radius-ip"; |
|
863 |
$isssue_ip_type .="\n\tset ipcp yes radius-ip"; |
|
864 |
} else { |
|
865 |
$isssue_ip_type = "set ipcp ranges {$pppoecfg['localip']}/32 {$clientip}/32"; |
|
866 | 866 |
} |
867 | 867 |
|
868 | 868 |
$mpdconf .= <<<EOD |
Also available in: Unified diff
Do not apply option when radius is disabled