Skip to content
Snippets Groups Projects
Commit f761e217 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Do usage checks on START aswell

- This helps with other plugins that hook in on the START phase

Change-Id: Ibffea55c24f40b536b4d01fa67d1934190258c0f
parent b2b89b47
No related branches found
No related tags found
No related merge requests found
...@@ -423,7 +423,7 @@ sub post_acct_hook ...@@ -423,7 +423,7 @@ sub post_acct_hook
return MOD_RES_SKIP if ($user->{'_UserDB'}->{'Name'} eq "SQL User Database (MAC authentication)"); return MOD_RES_SKIP if ($user->{'_UserDB'}->{'Name'} eq "SQL User Database (MAC authentication)");
# Exceeding maximum, must be disconnected # Exceeding maximum, must be disconnected
return MOD_RES_SKIP if ($packet->rawattr('Acct-Status-Type') ne "3"); return MOD_RES_SKIP if ($packet->rawattr('Acct-Status-Type') ne "1" && $packet->rawattr('Acct-Status-Type') ne "3");
$server->log(LOG_DEBUG,"[MOD_FEATURE_CAPPING] POST ACCT HOOK"); $server->log(LOG_DEBUG,"[MOD_FEATURE_CAPPING] POST ACCT HOOK");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment