summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-09-13 20:13:40 +0000
committerErmal Luçi <eri@pfsense.org>2009-09-13 20:13:40 +0000
commit89a31c7e103992a812d3ef231826758ade6b79f1 (patch)
tree50e598a98b6e25870085cc51cd9207a4144c4e49 /usr/local
parent508e522935e626937ef9e40d898e5ea29bcb8945 (diff)
downloadpfsense-89a31c7e103992a812d3ef231826758ade6b79f1.zip
pfsense-89a31c7e103992a812d3ef231826758ade6b79f1.tar.gz
Prevent negative RADIUS_NAS_PORT. This is a hack on m0n0 and not needed on pfSense.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/captiveportal/radius_authentication.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/captiveportal/radius_authentication.inc b/usr/local/captiveportal/radius_authentication.inc
index a511324..01ec063 100644
--- a/usr/local/captiveportal/radius_authentication.inc
+++ b/usr/local/captiveportal/radius_authentication.inc
@@ -53,7 +53,7 @@ function RADIUS_AUTHENTICATION($username,$password,$radiusservers,$clientip,$cli
$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;
// Do we even need to set it to NULL?
$retvalue['error'] = $retvalue['reply_message'] = $retvalue['url_redirection'] = $retvalue['session_timeout'] = $retvalue['idle_timeout'] = $retvalue['session_terminate_time'] = null;
@@ -151,4 +151,4 @@ function RADIUS_AUTHENTICATION($username,$password,$radiusservers,$clientip,$cli
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud