Back out ill-advised tcrules portlist patch

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2486 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-08-12 23:57:35 +00:00
parent 1625a7c4f3
commit daef55a295

View File

@ -2991,24 +2991,10 @@ process_tc_rule()
[ "x$proto" = "x-" ] && proto=all
[ "x$proto" = "x" ] && proto=all
[ "$proto" = "all" ] || r="${r}-p $proto "
if [ "x$port" != "x-" ]; then
if [ -n "$MULTIPORT" ]; then
r="${r}-m multiport --dports $port "
multiport=Yes
else
r="${r}--dport $port "
fi
fi
[ "x$port" = "x-" ] || r="${r}--dport $port "
fi
if [ "x$sport" != "x-" ]; then
if [ -n "$MULTIPORT" ]; then
[ -n "$multiport" ] && r="${r}--sports $sport " || r="${r}-m multiport --sports $sport "
else
r="${r}--sport $sport "
fi
fi
[ "x$sport" = "x-" ] || r="${r}--sport $sport "
case $chain in
tcpost)