Commit 8be7fb86 authored by Ad Schellevis's avatar Ad Schellevis

captive portal hardtimeout fix

parent a2b76548
......@@ -648,7 +648,7 @@ class CPClient {
}
// disconnect on session terminate time
if ($client->session_terminate_time != "" && $client->session_terminate_time < time()) {
if ( is_numeric($client->session_terminate_time) && $client->session_terminate_time > 0 && $client->session_terminate_time < time()) {
$this->disconnect($cpzonename, $client->sessionid);
$this->logportalauth($client->username,$client->mac,$client->ip,$status="TERMINATE TIME REACHED");
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment