From: Matteo Nastasi (mop) Date: Tue, 10 Feb 2015 16:52:00 +0000 (+0100) Subject: activate kickuser when no authorized user is behind proxy X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=curl-de-sac.git;a=commitdiff_plain;h=7f81ae823b3a5d1a0a50ec2eebe31c752871c800 activate kickuser when no authorized user is behind proxy --- diff --git a/web/Obj/curl-de-brisk.phh b/web/Obj/curl-de-brisk.phh index c92b0a0..47244fb 100755 --- a/web/Obj/curl-de-brisk.phh +++ b/web/Obj/curl-de-brisk.phh @@ -276,7 +276,7 @@ function proxy_chk_postprocess($brisk, $user_idx, $user_sess, $conn_ip, $is_auth { log_cds(sprintf("proxy: user_idx: %d, user_sess: %s, conn_ip: %s, is_auth: %s, is_proxy: %s", $user_idx, $user_sess, $conn_ip, ($is_auth ? "YES" : "NO"), ($is_proxy ? "YES" : "NO"))); - if (FALSE && $is_proxy) { + if (!$brisk->user[$user_idx]->is_auth() && $is_proxy) { $brisk->kickuser_by_sess($user_sess, 5); // GHOST_SESS_REAS_ANON } $brisk->user[$user_idx]->pend_async--;