[Netfilter] Log matching string instead of regex

This commit is contained in:
andryyy
2020-04-20 20:27:27 +02:00
parent 15bf470b5c
commit 731f5cb354
2 changed files with 2 additions and 2 deletions

View File

@@ -298,7 +298,7 @@ def watch():
ip = ipaddress.ip_address(addr)
if ip.is_private or ip.is_loopback:
continue
logWarn('%s matched rule id %d (regex: %s)' % (addr, rule_id, rule_regex))
logWarn('%s matched rule id %d (%s)' % (addr, rule_id, item['data']))
ban(addr)
def snat4(snat_target):