[Netfilter] Further improvements to catch invalid input
parent
3fcf260dde
commit
8eb757bea3
|
@ -301,8 +301,8 @@ def watch():
|
|||
pubsub.subscribe('F2B_CHANNEL')
|
||||
|
||||
while not quit_now:
|
||||
try:
|
||||
for item in pubsub.listen():
|
||||
try:
|
||||
refreshF2bregex()
|
||||
for rule_id, rule_regex in f2bregex.items():
|
||||
if item['data'] and item['type'] == 'message':
|
||||
|
@ -319,6 +319,7 @@ def watch():
|
|||
ban(addr)
|
||||
except Exception as ex:
|
||||
logWarn('Could not read logline from pubsub, skipping...')
|
||||
continue
|
||||
|
||||
def snat4(snat_target):
|
||||
global lock
|
||||
|
|
|
@ -390,7 +390,7 @@ services:
|
|||
- acme
|
||||
|
||||
netfilter-mailcow:
|
||||
image: mailcow/netfilter:1.40
|
||||
image: mailcow/netfilter:1.41
|
||||
stop_grace_period: 30s
|
||||
depends_on:
|
||||
- dovecot-mailcow
|
||||
|
|
Loading…
Reference in New Issue