From 72635da73fc450b040d72fbeca4becd73c99008d Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sun, 20 Dec 2015 22:17:35 +0200 Subject: [PATCH 1/1] Immediate disconnect on Unauthorize if not authorized. --- projects/stargazer/user_impl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index 36930576..5d505307 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -557,6 +557,8 @@ if (authorizedBy.empty()) lastDisconnectReason = reason; lastIPForDisconnect = currIP; currIP = 0; // DelUser in traffcounter + if (connected) + Disconnect(false, "not authorized"); return; } } -- 2.44.2