Fix bug with protocol specified without a port

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5599 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-20 20:06:52 +00:00
parent cc537c02bf
commit 3c614a70d9

View File

@ -675,6 +675,8 @@ sub do_proto( $$$ )
$proto = $2 ? $3 : 'tcp';
$ports = 'ipp2p' unless $ports;
$output .= "-p $proto -m ipp2p --$ports ";
} else {
$output .= "-p $proto ";
}
} elsif ( $ports || $sports ) {
fatal_error "SOURCE/DEST PORT(S) not allowed without PROTO, rule \"$line\""