[Netfilter] Log matching string instead of regex

This commit is contained in:
andryyy committed 2020-04-20 20:27:27 +02:00
1 parent 15bf470b5c
commit 731f5cb354
2 files changed
+2 -2

No files matched your search

+1 -1
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):