Allow '-' in a match name.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-04-11 18:30:02 -07:00
parent ff4fb21044
commit 6950cd2576

View File

@ -868,7 +868,7 @@ sub transform_rule( $;\$ ) {
} else { } else {
$simple = 0; $simple = 0;
if ( $option eq 'm' ) { if ( $option eq 'm' ) {
$input =~ s/(\w+)\s*//; $input =~ s/([\w-]+)\s*//;
$option = $1; $option = $1;
} }
} }