From 7f81ae823b3a5d1a0a50ec2eebe31c752871c800 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Tue, 10 Feb 2015 17:52:00 +0100 Subject: [PATCH] activate kickuser when no authorized user is behind proxy --- web/Obj/curl-de-brisk.phh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--; -- 2.17.1