diff options
author | Ermal <eri@pfsense.org> | 2011-08-30 15:53:10 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-30 16:11:40 +0000 |
commit | b09434095436ee136ada358041aafc0552f75672 (patch) | |
tree | ac460a76955d65b5cb523b26312a0d6acf2b8357 /etc | |
parent | 28ba77e495c7f43b7e4a69feeeeacb548d3b47f3 (diff) | |
download | pfsense-b09434095436ee136ada358041aafc0552f75672.zip pfsense-b09434095436ee136ada358041aafc0552f75672.tar.gz |
Fix several issues in pppoe code and remove duplicated code.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/vpn.inc | 4 |
1 files changed, 2 insertions, 2 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 |