mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix missing origins and actions for more complex direct rules
This commit is contained in:
@@ -138,19 +138,17 @@ while(<$fh2>) {
|
||||
}
|
||||
|
||||
# Get address
|
||||
if (/address=["'](.*?)["']/) {
|
||||
}
|
||||
push(@head, $text{'list_rules_ip'});
|
||||
push(@body, $ips);
|
||||
push(@head, $text{'list_rules_ip'});
|
||||
push(@body, $ips);
|
||||
|
||||
# Get origin
|
||||
if (/(INPUT|OUTPUT)/) {
|
||||
if (/(INPUT|OUTPUT|FORWARD|POSTROUTING)/) {
|
||||
push(@head, $text{'list_rules_origin'});
|
||||
push(@body, ucfirst(lc($1)));
|
||||
}
|
||||
|
||||
# Get action
|
||||
if (/(ACCEPT|REJECT|DROP|MARK$)/) {
|
||||
if (/(ACCEPT|REJECT|DROP|MARK|MASQUERADE$)/) {
|
||||
push(@head, $text{'list_rules_action'});
|
||||
push(@body, ucfirst(lc($1)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user