Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
make banip ban immediately instead of just adding a registered failure #31
ATM banip command is directed to the corresponding filter which adds a failure, thus banip command must be issued "maxretry" times for ban to occur.
It should instead ban immediately, probably by manufacturing corresponding ticket and providing it to BanManager (didn't look myself yet either current design allows for that). (Sure thing there is easier solution -- just to loop for MaxRetry times, but imho that is not ideal ;) )
A hack to make this work would be to change the self.failManager.addFailure line to:
It sets enough failures to cause a ban. Would probably be better to just add a ban, but this should work fine. Tested and works on my homebox.