mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-14 19:54:06 +01:00
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:
parent
76b5918a13
commit
304a502d38
@ -2257,9 +2257,6 @@ add_an_action()
|
||||
[ x$cport = x- ] && cport=
|
||||
|
||||
case $proto in
|
||||
all|-)
|
||||
proto=
|
||||
;;
|
||||
tcp|TCP|6)
|
||||
do_ports
|
||||
[ "$target" = QUEUE ] && proto="$proto --syn"
|
||||
@ -2378,7 +2375,7 @@ process_action() # $1 = action
|
||||
|
||||
# Generate Netfilter rule(s)
|
||||
|
||||
protocol=${protocol:=all}
|
||||
[ "x$protocol"="x-" ] && protocol=all || protocol=${protocol:=all}
|
||||
|
||||
if [ -n "$MULTIPORT" ] && \
|
||||
! list_search $protocol "icmp" "ICMP" "1" && \
|
||||
|
Loading…
Reference in New Issue
Block a user