Add initial flood prevention

This commit is contained in:
Tulir Asokan 2019-06-23 14:14:28 +03:00
parent 8e16575d3b
commit 85a7967888
3 changed files with 39 additions and 2 deletions

View file

@ -37,6 +37,8 @@ class Config(BaseProxyConfig):
helper.copy("rules")
helper.copy("templates")
helper.copy("default_flags")
helper.copy("antispam.max")
helper.copy("antispam.delay")
def parse_data(self) -> None:
self.default_flags = re.RegexFlag(0)