Fix breakage of ipp2p

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-12-30 08:38:14 -08:00
parent 6f82bfe7d1
commit 45a164733b
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -4938,6 +4938,8 @@ sub do_proto( $$$;$ )
} else {
fatal_error '":syn" is only allowed with tcp' if $synonly;
$proto = $proto . ':all' if $all;
if ( $proto =~ /^(ipp2p(:(tcp|udp|all))?)$/i ) {
my $p = $2 ? lc $3 : 'tcp';
require_capability( 'IPP2P_MATCH' , "PROTO = $proto" , 's' );
@ -5144,6 +5146,8 @@ sub do_iproto( $$$ )
} else {
fatal_error '":syn" is only allowed with tcp' if $synonly;
$proto = $proto . ':all' if $all;
if ( $proto =~ /^(ipp2p(:(tcp|udp|all))?)$/i ) {
my $p = $2 ? lc $3 : 'tcp';
require_capability( 'IPP2P_MATCH' , "PROTO = $proto" , 's' );