Even simpler RE for detecting builtins

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-02-28 13:29:26 -08:00
parent 693d0e5d4c
commit 585711caa8

View File

@ -635,7 +635,7 @@ sub add_jump( $$$;$$$ ) {
#
# Ensure that we have the chain unless it is a builtin like 'ACCEPT'
#
$toref = ensure_chain( $fromref->{table} , $to ) unless $builtin_target{$to} || $to =~ / +./; #If the target has options, it must be a builtin.
$toref = ensure_chain( $fromref->{table} , $to ) unless $builtin_target{$to} || $to =~ /--/; #If the target has options, it must be a builtin.
}
#