mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-19 17:28:35 +02:00
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:
parent
cc537c02bf
commit
3c614a70d9
@ -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\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user