mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Ticket #4007, properly pass the table number here to retrieve the status.
This commit is contained in:
parent
687ff78c96
commit
bc9155c33b
@ -1129,10 +1129,10 @@ function captiveportal_allowedip_configure() {
|
||||
}
|
||||
|
||||
/* get last activity timestamp given client IP address */
|
||||
function captiveportal_get_last_activity($ip, $mac = NULL) {
|
||||
function captiveportal_get_last_activity($ip, $mac = NULL, $table = 1) {
|
||||
global $cpzoneid;
|
||||
|
||||
$ipfwoutput = pfSense_ipfw_getTablestats($cpzoneid, IP_FW_TABLE_XLISTENTRY, $ip, $mac);
|
||||
$ipfwoutput = pfSense_ipfw_getTablestats($cpzoneid, IP_FW_TABLE_XLISTENTRY, $table, $ip, $mac);
|
||||
/* Reading only from one of the tables is enough of approximation. */
|
||||
if (is_array($ipfwoutput)) {
|
||||
return $ipfwoutput['timestamp'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user