MXS-2773: Make host blocking an optional feature
In cases where servers are known to be down on startup, this feature does more harm than good. Disabling it in these cases would be preferable but due to how the parameter is used, it is not possible.
This commit is contained in:
@ -2768,7 +2768,7 @@ static int handle_global_item(const char* name, const char* value)
|
||||
{
|
||||
char* endptr;
|
||||
int intval = strtol(value, &endptr, 0);
|
||||
if (*endptr == '\0' && intval > 0)
|
||||
if (*endptr == '\0' && intval >= 0)
|
||||
{
|
||||
gateway.max_auth_errors_until_block = intval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user