mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Don't modify existing rules
This commit is contained in:
@@ -67,8 +67,9 @@ PORT: foreach $p (@ARGV) {
|
||||
print STDERR "Checking for port $p ..\n";
|
||||
foreach $r (@{$filter->{'rules'}}) {
|
||||
if ($r->{'chain'} eq 'INPUT' &&
|
||||
$r->{'j'}->[1] eq 'ACCEPT' &&
|
||||
$r->{'p'}->[0] eq '' && $r->{'p'}->[1] eq 'tcp') {
|
||||
$r->{'j'} && $r->{'j'}->[1] eq 'ACCEPT' &&
|
||||
$r->{'p'} && $r->{'p'}->[0] eq '' &&
|
||||
$r->{'p'}->[1] eq 'tcp') {
|
||||
# Found tcp rule .. check ports
|
||||
@rports = ( );
|
||||
if ($r->{'dports'} && $r->{'dports'}->[0] eq '') {
|
||||
|
||||
Reference in New Issue
Block a user