mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-26 08:08:59 +01:00
Trap '!' in port columns.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
32a8b254a0
commit
a7ab53e135
@ -2856,6 +2856,7 @@ sub do_proto( $$$;$ )
|
||||
$output .= "-m multiport ${invert}--dports ${ports} ";
|
||||
$multiport = 1;
|
||||
} else {
|
||||
fatal_error "Missing DEST PORT" unless supplied $ports;
|
||||
$ports = validate_portpair $pname , $ports;
|
||||
$output .= "${invert}--dport ${ports} ";
|
||||
}
|
||||
@ -2878,6 +2879,7 @@ sub do_proto( $$$;$ )
|
||||
$sports = validate_port_list $pname , $sports;
|
||||
$output .= "-m multiport ${invert}--sports ${sports} ";
|
||||
} else {
|
||||
fatal_error "Missing SOURCE PORT" unless supplied $sports;
|
||||
$sports = validate_portpair $pname , $sports;
|
||||
$output .= "${invert}--sport ${sports} ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user