remote API - ban IP from distributed DB

This commit is contained in:
bunkerity
2021-10-07 16:57:37 +02:00
parent fdc02be051
commit f0f432487b
7 changed files with 86 additions and 13 deletions

View File

@@ -132,7 +132,7 @@ class Job(abc.ABC) :
chunk = chunk.decode("utf-8")
if self._type in ["line", "json"] :
if not re.match(self._regex, chunk) :
log(self._name, "WARN", chunk + " doesn't match regex " + self._regex)
#log(self._name, "WARN", chunk + " doesn't match regex " + self._regex)
continue
if self._redis == None :
if self._type in ["line", "json"] :