mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 12:14:32 +01:00
Fix 'none' handling in rules file
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6025 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
c3d35b6ed6
commit
f65a020329
@ -1246,10 +1246,14 @@ sub process_rules() {
|
||||
}
|
||||
|
||||
$section = $source;
|
||||
} else {
|
||||
if ( "\L$source" =~ /^none(:.*)?$/ || "\L$dest" =~ /^none(:.*)?$/ ) {
|
||||
progress_message "Rule \"$line\" ignored."
|
||||
} else {
|
||||
process_rule $target, $source, $dest, $proto, $ports, $sports, $origdest, $ratelimit, $user;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$comment = '';
|
||||
$section = 'DONE';
|
||||
|
Loading…
Reference in New Issue
Block a user