From: Maxim Mamontov Date: Sun, 20 Dec 2015 20:18:22 +0000 (+0200) Subject: Merge branch 'stg-2.409' into stg-2.409-radius X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/9e6bfec34d7980e5c0af100110721ffd09f46e29?hp=65eef741908a8005f8a1e11f1fa0f6c19afd3d0c Merge branch 'stg-2.409' into stg-2.409-radius --- 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; } }