Fix PROTO fix

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1097 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2004-01-29 23:24:30 +00:00
parent 76b5918a13
commit 304a502d38

View File

@ -2257,9 +2257,6 @@ add_an_action()
[ x$cport = x- ] && cport= [ x$cport = x- ] && cport=
case $proto in case $proto in
all|-)
proto=
;;
tcp|TCP|6) tcp|TCP|6)
do_ports do_ports
[ "$target" = QUEUE ] && proto="$proto --syn" [ "$target" = QUEUE ] && proto="$proto --syn"
@ -2378,7 +2375,7 @@ process_action() # $1 = action
# Generate Netfilter rule(s) # Generate Netfilter rule(s)
protocol=${protocol:=all} [ "x$protocol"="x-" ] && protocol=all || protocol=${protocol:=all}
if [ -n "$MULTIPORT" ] && \ if [ -n "$MULTIPORT" ] && \
! list_search $protocol "icmp" "ICMP" "1" && \ ! list_search $protocol "icmp" "ICMP" "1" && \