From: Maxim Mamontov Date: Sun, 20 Dec 2015 20:17:35 +0000 (+0200) Subject: Immediate disconnect on Unauthorize if not authorized. X-Git-Tag: 2.409~174^2~3 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/72635da73fc450b040d72fbeca4becd73c99008d?ds=sidebyside;hp=--cc Immediate disconnect on Unauthorize if not authorized. --- 72635da73fc450b040d72fbeca4becd73c99008d 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; } }