summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/captiveportal.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 388b8ca..d910d45 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1636,8 +1636,11 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
foreach ($cpdb as $sid => $cpentry) {
/* on the same ip */
- if($cpentry[2] == $clientip && (isset($config['captiveportal']['nomacfilter']) || empty($cpentry[3]) || $cpentry[3] == $clientmac)) {
- captiveportal_logportalauth($cpentry[4],$cpentry[3],$cpentry[2],"CONCURRENT LOGIN - REUSING OLD SESSION");
+ if($cpentry[2] == $clientip) {
+ if (isset($config['captiveportal']['nomacfilter']) || $cpentry[3] == $clientmac)
+ captiveportal_logportalauth($cpentry[4],$cpentry[3],$cpentry[2],"CONCURRENT LOGIN - REUSING OLD SESSION");
+ else
+ captiveportal_logportalauth($cpentry[4],$cpentry[3],$cpentry[2],"CONCURRENT LOGIN - REUSING IP {$cpentry[2]} WITH DIFFERENT MAC ADDRESS {$cpentry[3]}");
$sessionid = $sid;
break;
}
OpenPOWER on IntegriCloud