Fix Fail2Ban jump lookup typo #2668
Some checks failed
Close inactive / close-inactive (push) Has been cancelled
Tests / prove (push) Has been cancelled
Package and upload artifacts / build (push) Has been cancelled

This commit is contained in:
Ilia Ross
2026-08-11 03:09:26 +02:00
parent bd0f9f9e5f
commit 57aecbfc79

View File

@@ -527,7 +527,7 @@ local @oldjumps = grep { $_->{'chain'} eq 'INPUT' &&
# Get all new fail2ban chain rules and inputs that jump to them
local @newrules = grep { $_->{'chain'} =~ /^f2b-/ } @$newrules;
local @newjumps = grep { $_->{'chain'} eq 'INPUT' &&
$_->{'j'}->[1] =~ /^f2b-/ } @newrules;
$_->{'j'}->[1] =~ /^f2b-/ } @$newrules;
# Re-create the chains
my @oldchains = &unique(map { $_->{'chain'} } @oldrules);