diff --git a/radius.php b/radius.php index 27b96557..daee1926 100644 --- a/radius.php +++ b/radius.php @@ -291,7 +291,8 @@ try { $d->acctsessionid = _post('acctSessionId'); $d->username = $username; $d->realm = _post('realm'); - $d->nasipaddress = _post('nasip'); + $d->nasipaddress = _post('nasIpAddress'); + $d->acctsessiontime = intval(_post('acctSessionTime')); $d->nasid = _post('nasid'); $d->nasportid = _post('nasPortId'); $d->nasporttype = _post('nasPortType'); @@ -452,4 +453,4 @@ function show_radius_result($array, $code = 200) die(); } die(json_encode($array)); -} \ No newline at end of file +}