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:
teastep 2007-04-19 21:24:25 +00:00
parent c3d35b6ed6
commit f65a020329

View File

@ -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';