Fix Fail2Ban continuation lines to align under the directive value

This commit is contained in:
Ilia Ross
2026-08-18 00:12:19 +02:00
parent c27917e4a3
commit 0e0f7622b5
+3 -1
View File
@@ -408,7 +408,9 @@ my @rv;
my @v = ref($dir->{'value'}) eq 'ARRAY' ? @{$dir->{'value'}}
: split(/\n/, $dir->{'value'});
push(@rv, $dir->{'name'}." = ".shift(@v));
push(@rv, map { " ".$_ } @v); # Continuation
# Indent continuation lines to align with the first value
my $indent = " " x (length($dir->{'name'}) + 3);
push(@rv, map { $indent.$_ } @v);
return @rv;
}