summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal/radius_accounting.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-09-13 12:12:24 +0000
committerErmal Luçi <eri@pfsense.org>2009-09-13 12:12:24 +0000
commit15527c00fb2aca4f1d7cc5196eafc010a27b214c (patch)
treeb881d36f70f0ac878afe65e95509d1fc81409baa /usr/local/captiveportal/radius_accounting.inc
parentb6aed0e1e7aa60623a7fcd983b6bdf18ea7d361a (diff)
downloadpfsense-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/captiveportal/radius_accounting.inc')
-rw-r--r--usr/local/captiveportal/radius_accounting.inc4
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;
OpenPOWER on IntegriCloud