summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-02-07 20:26:19 +0000
committerErmal <eri@pfsense.org>2012-02-07 20:26:19 +0000
commit2890cae51a424519662922e558bc939077b66c7c (patch)
tree1477c804bec4a52292c6c096513ad4073b5952ac /etc/inc
parent843a6fe25ac303ceda46450a3f4ac24f69a54ecb (diff)
downloadpfsense-2890cae51a424519662922e558bc939077b66c7c.zip
pfsense-2890cae51a424519662922e558bc939077b66c7c.tar.gz
Fixes #2082. Actually just correct the log to display the correct information
Diffstat (limited to 'etc/inc')
-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 beba487..8301fb2 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1742,8 +1742,11 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
if (empty($cpentry[10]))
$cpentry[10] = 'first';
/* on the same ip */
- if ($cpentry[2] == $clientip && (isset($config['captiveportal'][$cpzone]['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