diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-09-13 12:12:24 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-09-13 12:12:24 +0000 |
commit | 15527c00fb2aca4f1d7cc5196eafc010a27b214c (patch) | |
tree | b881d36f70f0ac878afe65e95509d1fc81409baa /usr/local | |
parent | b6aed0e1e7aa60623a7fcd983b6bdf18ea7d361a (diff) | |
download | pfsense-15527c00fb2aca4f1d7cc5196eafc010a27b214c.zip pfsense-15527c00fb2aca4f1d7cc5196eafc010a27b214c.tar.gz |
Prevent negative RADIUS_NAS_PORT attribute. Before this was a hack made in m0n0 but which is not anymore valid in pfSense.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/captiveportal/radius_accounting.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/captiveportal/radius_accounting.inc b/usr/local/captiveportal/radius_accounting.inc index c32b610..c4df029 100644 --- a/usr/local/captiveportal/radius_accounting.inc +++ b/usr/local/captiveportal/radius_accounting.inc @@ -54,7 +54,7 @@ function RADIUS_ACCOUNTING_START($ruleno,$username,$sessionid,$radiusip,$radiusp $retvalue = array(); $nas_mac = mac_format(get_interface_mac($config['interfaces']['wan']['if'])); $clientmac = mac_format($clientmac); - $nas_port = $ruleno - 10000; + $nas_port = $ruleno; $radiusvendor = $config['captiveportal']['radiusvendor'] ? $config['captiveportal']['radiusvendor'] : null; switch($radiusvendor) { @@ -157,7 +157,7 @@ function RADIUS_ACCOUNTING_STOP($ruleno,$username,$sessionid,$start_time,$radius $retvalue = array(); $nas_mac = mac_format(get_interface_mac($config['interfaces']['wan']['if'])); $clientmac = mac_format($clientmac); - $nas_port = $ruleno - 10000; + $nas_port = $ruleno; $radiusvendor = $config['captiveportal']['radiusvendor'] ? $config['captiveportal']['radiusvendor'] : null; $stop_time = (empty($stop_time)) ? time() : $stop_time; $session_time = $stop_time - $start_time; |