diff options
-rw-r--r-- | etc/inc/vpn.inc | 4 | ||||
-rwxr-xr-x | usr/local/www/vpn_pppoe_edit.php | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 99eecab..1707a31 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -1314,7 +1314,7 @@ function vpn_pppoe_configure(&$pppoecfg) { $clientip = long2ip32(ip2long($pppoecfg['remoteip']) + $i); - if (isset ($pppoecfg['radius']['radiusissueips']) && isset ($pppoecfg['radius']['server']['enable'])) { + if (isset($pppoecfg['radius']['radiusissueips']) && isset($pppoecfg['radius']['server']['enable'])) { $isssue_ip_type = "set ipcp ranges {$pppoecfg['localip']}/32 0.0.0.0/0"; } else { $isssue_ip_type = "set ipcp ranges {$pppoecfg['localip']}/32 {$clientip}/32"; @@ -1382,7 +1382,7 @@ EOD; if (isset($pppoecfg['radius']['server']['acctport'])) $radiusacctport = $pppoecfg['radius']['server']['acctport']; $mpdconf .=<<<EOD - set radius server {$pppoecfg['radius']['server']['ip']} "{$pppoecfg['radius']['server']['secret']} {$radiusport} {$radiusacctport}" + set radius server {$pppoecfg['radius']['server']['ip']} "{$pppoecfg['radius']['server']['secret']}" {$radiusport} {$radiusacctport} set radius retries 3 set radius timeout 10 set auth enable radius-auth diff --git a/usr/local/www/vpn_pppoe_edit.php b/usr/local/www/vpn_pppoe_edit.php index ea6f5f0..fb6508a 100755 --- a/usr/local/www/vpn_pppoe_edit.php +++ b/usr/local/www/vpn_pppoe_edit.php @@ -95,7 +95,6 @@ if (isset($id) && $a_pppoes[$id]) { $pconfig['radiusserver2acctport'] = $pppoecfg['radius']['server2']['acctport']; $pconfig['radiussecret2'] = $pppoecfg['radius']['server2']['secret2']; } - $pconfig['radiusissueips'] = isset($pppoecfg['radius']['radiusissueips']); $pconfig['radius_nasip'] = $pppoecfg['radius']['nasip']; $pconfig['radius_acct_update'] = $pppoecfg['radius']['acct_update']; } @@ -170,7 +169,7 @@ if ($_POST) { $pppoecfg['radius']['server']['port'] = $_POST['radiusserverport']; $pppoecfg['radius']['server']['acctport'] = $_POST['radiusserveracctport']; } - if ($_POST['radiusserver']) { + if ($_POST['radiusserver2']) { $pppoecfg['radius']['server2'] = array(); $pppoecfg['radius']['server2']['ip'] = $_POST['radiusserver2']; |