mirror of
https://github.com/webmin/webmin.git
synced 2025-08-24 06:45:35 +00:00
Fix iptables parsing
This commit is contained in:
@ -73,7 +73,7 @@ while(<FILE>) {
|
|||||||
# New chain definition
|
# New chain definition
|
||||||
$table->{'defaults'}->{$2} = '-';
|
$table->{'defaults'}->{$2} = '-';
|
||||||
}
|
}
|
||||||
elsif (/^(\[[^\]]*\]\s+)?-(AI)\s+(\S+)(.*)/) {
|
elsif (/^(\[[^\]]*\]\s+)?-(A|I)\s+(\S+)(.*)/) {
|
||||||
# Rule definition
|
# Rule definition
|
||||||
local $rule = { 'line' => $lnum,
|
local $rule = { 'line' => $lnum,
|
||||||
'eline' => $lnum,
|
'eline' => $lnum,
|
||||||
|
Reference in New Issue
Block a user