From 89a31c7e103992a812d3ef231826758ade6b79f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Sun, 13 Sep 2009 20:13:40 +0000 Subject: Prevent negative RADIUS_NAS_PORT. This is a hack on m0n0 and not needed on pfSense. --- usr/local/captiveportal/radius_authentication.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/captiveportal/radius_authentication.inc') 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 +?> -- cgit v1.1