From 3c614a70d9debaf295baf29883c9d4dcb80bb568 Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 20 Mar 2007 20:06:52 +0000 Subject: [PATCH] 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 --- New/Shorewall/Chains.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/New/Shorewall/Chains.pm b/New/Shorewall/Chains.pm index 24499b2af..c8c0dbad2 100644 --- a/New/Shorewall/Chains.pm +++ b/New/Shorewall/Chains.pm @@ -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\""