activate kickuser when no authorized user is behind proxy
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Tue, 10 Feb 2015 16:52:00 +0000 (17:52 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Tue, 10 Feb 2015 16:52:00 +0000 (17:52 +0100)
web/Obj/curl-de-brisk.phh

index c92b0a0..47244fb 100755 (executable)
@@ -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--;